docs(env): standardize development and production env workflow
This commit is contained in:
@@ -8,13 +8,13 @@ psql "$DATABASE_URL" -f scripts/init_schema.sql
|
||||
- DB schema 檔案:[backend/scripts/init_schema.sql](../backend/scripts/init_schema.sql)
|
||||
|
||||
## 2) 啟動後端
|
||||
先準備 `.env`:
|
||||
本地開發使用 `.env.development`:
|
||||
```bash
|
||||
cd backend
|
||||
cp .env.example .env
|
||||
# edit .env.development directly
|
||||
```
|
||||
|
||||
本機開發與 VPS 一律使用 `backend/.env`(不再分 `.env.development`)。
|
||||
本機開發固定使用 `backend/.env.development`。
|
||||
|
||||
再啟動:
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user