Files
dukang/deploy/deploy.env.example
jacy 6a23e79f4c 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>
2026-07-31 11:37:18 +08:00

18 lines
499 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 复制为 deploy.env 后填写(deploy.env 勿提交)
DEPLOY_HOST=your.server.ip.or.domain
DEPLOY_USER=root
DEPLOY_PORT=22
# DEPLOY_SSH_KEY=~/.ssh/id_rsa
# 同机双栈目录
PROD_APP_ROOT=/opt/dukang
STAGING_APP_ROOT=/opt/dukang-staging
# 兼容旧字段(未指定 --env 时可能用到)
APP_ROOT=/opt/dukang
# 生产仓库(SSH
GIT_REPO_URL=git@git.yqidian.com:jacy/dukang.git
GIT_REMOTE=origin
# 默认分支已由 --env 决定:staging→devproduction→main
# GIT_BRANCH=dev