-
Notifications
You must be signed in to change notification settings - Fork 0
test #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test #9
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,9 +1,9 @@ | ||||||
| # pay-crew | ||||||
|
|
||||||
| [](https://github.com/Myxogastria0808/pay-crew/actions/workflows/test.yaml) | ||||||
| [](https://github.com/Myxogastria0808/pay-crew/actions/workflows/docs.yaml) | ||||||
|  | ||||||
|  | ||||||
| [](https://github.com/Pay-Crew/pay-crew2/actions/workflows/test.yaml) | ||||||
| [](https://github.com/Pay-Crew/pay-crew2/actions/workflows/docs.yaml) | ||||||
|  | ||||||
|  | ||||||
|  | ||||||
| [](#) | ||||||
|
|
||||||
|
|
@@ -29,7 +29,7 @@ https://pay-crew.github.io/pay-crew/ | |||||
| 1. このレポジトリをクローン | ||||||
|
|
||||||
| ```sh | ||||||
| git clone https://github.com/Myxogastria0808/pay-crew.git | ||||||
| git clone https://github.com/Pay-Crew/pay-crew.git | ||||||
|
||||||
| git clone https://github.com/Pay-Crew/pay-crew.git | |
| git clone https://github.com/Pay-Crew/pay-crew2.git |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,50 @@ | ||||||
| # pay-crew Backend | ||||||
|
|
||||||
| ## Xata LiteへのMigration方法 | ||||||
|
|
||||||
| 1. `products/backend/.env`の`POSTGRES_URL`の値に対象のXata Liteのデータベースの`DATABASE_URL_POSTGRES`を設定する。 | ||||||
|
|
||||||
| 2. `pnpm run backend:migrate`を実行する。 | ||||||
|
|
||||||
| ※ 事前に`pnpm i && pnpm run backend:generate`を実行しておくこと。 | ||||||
|
|
||||||
| ```sh | ||||||
| pnpm run backend:migrate | ||||||
| ``` | ||||||
|
|
||||||
| 3. マイグレーションが完了したら、`products/backend/.env`の`POSTGRES_URL`の値を元の状態に戻す (削除する) 。 | ||||||
|
|
||||||
| ## Workersと接続するHyperdriveを変更する方法 | ||||||
|
|
||||||
| 1. `products/backend/wrangler.jsonc`の`HYPERDRIVE`の`ID`を変更する。 | ||||||
|
|
||||||
| ```jsonc | ||||||
| { | ||||||
| "$schema": "node_modules/wrangler/config-schema.json", | ||||||
| "name": "pay-crew2-backend", | ||||||
| "main": "src/index.ts", | ||||||
| "compatibility_date": "2025-12-03", | ||||||
| "compatibility_flags": ["nodejs_compat"], | ||||||
| "hyperdrive": [ | ||||||
| { | ||||||
| "binding": "HYPERDRIVE", | ||||||
| "id": "", // <- ここを変更する | ||||||
| }, | ||||||
| ], | ||||||
| } | ||||||
|
|
||||||
| ``` | ||||||
|
|
||||||
| 2. `pnpm run backend:deploy`を実行する。 | ||||||
|
|
||||||
| ```sh | ||||||
| pnpm run backend:deploy | ||||||
| ``` | ||||||
|
|
||||||
| 3. デプロイが完了したら、`products/backend/wrangler.jsonc`の`HYPERDRIVE`の`ID`を`""` (元の状態) に戻す。 | ||||||
|
|
||||||
| ※ HyperdriveのIDが漏洩すると、他者にデータベースを操作される可能性があるため、デプロイ完了後は必ず元に戻してからステージング (`git add`) をすること。 | ||||||
|
Comment on lines
+44
to
+46
|
||||||
| ※ HyperdriveのIDが漏洩すると、他者にデータベースを操作される可能性があるため、デプロイ完了後は必ず元に戻してからステージング (`git add`) をすること。 | |
| ※ HyperdriveのIDが漏洩すると、他者にデータベースを操作される可能性があるため、デプロイ完了後は必ず元に戻してからステージングエリアへの追加 (`git add`) をすること。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent repository references: Lines 3-4 use "Pay-Crew/pay-crew2" but lines 5-6 still use "Pay-Crew/pay-crew". All badge URLs should reference the same repository for consistency.