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:
2026-07-31 11:37:18 +08:00
parent 8d6c0f9ac0
commit 6a23e79f4c
20 changed files with 793 additions and 119 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
# 生产环境(真实第三方,关闭 Mock)
# 用途:服务器 runtime 配置bash deploy/sync-api-env.sh production 同步到远端 .env.production
# 用途:服务器 /opt/dukangbash 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