You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,15 +63,17 @@ bun run sync:schedule
63
63
64
64
### Deployment
65
65
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
67
67
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
69
71
70
72
```bash
71
73
bun run migrate:apply
72
74
```
73
75
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)
75
77
76
78
```bash
77
79
# Please do this in order
@@ -81,21 +83,21 @@ bun run sync:station
81
83
bun run sync:schedule
82
84
```
83
85
84
-
4. Add `COMULINE_ENV` to your `.production.vars` file
86
+
6. Add `COMULINE_ENV` to your `.production.vars` file
85
87
86
88
```
87
89
COMULINE_ENV=production
88
90
```
89
91
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
91
93
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`
93
95
94
96
```bash
95
97
bunx wrangler secret put --env production $(cat .production.vars)
0 commit comments