docs(env): standardize development and production env workflow
This commit is contained in:
2
backend
2
backend
Submodule backend updated: c032020f59...94cec746cb
@@ -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
|
||||
|
||||
@@ -11,7 +11,7 @@ git submodule update --init --recursive
|
||||
## 2) 後端部署(Docker)
|
||||
```bash
|
||||
cd /opt/member-platform/backend
|
||||
cp .env.example .env
|
||||
cp .env.production .env
|
||||
```
|
||||
編輯 `.env`(DB、Keycloak、Realm Roles、Cache)。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user