Skip to content

Commit bbd67d5

Browse files
committed
update docs
1 parent a39a0f3 commit bbd67d5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/api.deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
with:
3232
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3333
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
34-
command: deploy --minify src/index.ts
34+
command: deploy --minify src/index.ts --name comuline-api --env production

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,17 @@ bun run sync:schedule
6363

6464
### Deployment
6565

66-
1. Create a new PostgreSQL database in [Neon](https://neon.tech/) and copy the connection string value as `DATABASE_URL` in your `.production.vars` file
66+
1. Rename the `wrand.example.toml` to `wrangler.toml` and fill the necessary information
6767

68-
2. Run the database migration
68+
2. Create a new PostgreSQL database in [Neon](https://neon.tech/) and copy the connection string value as `DATABASE_URL` in your `.production.vars` file
69+
70+
3. Run the database migration
6971

7072
```bash
7173
bun run migrate:apply
7274
```
7375

74-
3. Sync the data and populate it into your remote database (once only as you needed)
76+
4. Sync the data and populate it into your remote database (once only as you needed)
7577

7678
```bash
7779
# Please do this in order
@@ -81,21 +83,21 @@ bun run sync:station
8183
bun run sync:schedule
8284
```
8385

84-
4. Add `COMULINE_ENV` to your `.production.vars` file
86+
6. Add `COMULINE_ENV` to your `.production.vars` file
8587

8688
```
8789
COMULINE_ENV=production
8890
```
8991

90-
5. Create a new Redis database in [Upstash](https://upstash.com/) and copy the value of `UPSTASH_REDIS_REST_TOKEN` and `UPSTASH_REDIS_REST_URL` to your `.production.vars` file
92+
6. Create a new Redis database in [Upstash](https://upstash.com/) and copy the value of `UPSTASH_REDIS_REST_TOKEN` and `UPSTASH_REDIS_REST_URL` to your `.production.vars` file
9193

92-
6. Save your `.production.vars` file to your environment variables in your Cloudflare Workers using `wrangler`
94+
7. Save your `.production.vars` file to your environment variables in your Cloudflare Workers using `wrangler`
9395

9496
```bash
9597
bunx wrangler secret put --env production $(cat .production.vars)
9698
```
9799

98-
6. Deploy the API to Cloudflare Workers
100+
8. Deploy the API to Cloudflare Workers
99101

100102
```bash
101103
bun run deploy

0 commit comments

Comments
 (0)