chore(deploy): add same-host staging stack next to production
dev deploys to /opt/dukang-staging (819x, *-test domains); main deploys to production. Staging uses full Mock with shared WeChat app ids. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
# 生产环境(真实第三方,关闭 Mock)
|
||||
# 用途:服务器 runtime 配置;bash deploy/sync-api-env.sh production 同步到远端 .env.production
|
||||
# 用途:服务器 /opt/dukang;bash deploy/sync-api-env.sh production
|
||||
# 本地开发请使用 .env(从 .env.example 复制),勿与生产混用
|
||||
# 测试环境请使用 .env.staging(从 .env.staging.example 复制)
|
||||
|
||||
APP_ENV=production
|
||||
NODE_ENV=production
|
||||
|
||||
# 生产:阿里云 RDS(密码中的 @ ! 需 URL 编码为 %40 %21)
|
||||
DATABASE_URL="mysql://dukangadmin:CHANGE_ME@rm-xxxxxxxx.mysql.rds.aliyuncs.com:3306/dukang_prod?charset=utf8mb4"
|
||||
REDIS_URL="redis://localhost:6379"
|
||||
REDIS_URL="redis://localhost:6379/0"
|
||||
JWT_SECRET="CHANGE_ME-strong-random-secret"
|
||||
JWT_EXPIRES_IN="7d"
|
||||
PORT=8090
|
||||
|
||||
Reference in New Issue
Block a user