diff --git a/deploy/auto-release.env.example b/deploy/auto-release.env.example index 687c8e4..ae7e31a 100644 --- a/deploy/auto-release.env.example +++ b/deploy/auto-release.env.example @@ -1,7 +1,7 @@ # 复制为 auto-release.env(勿提交 Git) -# 服务器路径: /opt/dukang-haoke/deploy/auto-release.env +# 服务器路径: /opt/dukang/deploy/auto-release.env -APP_ROOT=/opt/dukang-haoke +APP_ROOT=/opt/dukang GIT_REPO_URL=git@git.yqidian.com:jacy/dukang.git GIT_REMOTE=origin GIT_BRANCH=dev diff --git a/deploy/auto-release.sh b/deploy/auto-release.sh index f85b78b..5c5df9d 100644 --- a/deploy/auto-release.sh +++ b/deploy/auto-release.sh @@ -5,7 +5,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" ENV_FILE="$SCRIPT_DIR/auto-release.env" -APP_ROOT="${APP_ROOT:-/opt/dukang-haoke}" +APP_ROOT="${APP_ROOT:-/opt/dukang}" GIT_REMOTE="${GIT_REMOTE:-origin}" GIT_BRANCH="${GIT_BRANCH:-dev}" LOCK_FILE="${DEPLOY_LOCK_FILE:-/var/run/dukang-deploy.lock}" diff --git a/deploy/deploy.env.example b/deploy/deploy.env.example index 3bf492e..46842f0 100644 --- a/deploy/deploy.env.example +++ b/deploy/deploy.env.example @@ -4,7 +4,7 @@ DEPLOY_USER=root DEPLOY_PORT=22 # DEPLOY_SSH_KEY=~/.ssh/id_rsa -APP_ROOT=/opt/dukang-haoke +APP_ROOT=/opt/dukang # 生产仓库(SSH) GIT_REPO_URL=git@git.yqidian.com:jacy/dukang.git GIT_REMOTE=origin diff --git a/deploy/deploy.sh b/deploy/deploy.sh index ce2e450..3885fde 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -9,7 +9,7 @@ DEPLOY_HOST="" DEPLOY_USER="root" DEPLOY_PORT="22" DEPLOY_SSH_KEY="" -APP_ROOT="/opt/dukang-haoke" +APP_ROOT="/opt/dukang" GIT_REMOTE="origin" GIT_BRANCH="dev" diff --git a/deploy/ecosystem.config.cjs b/deploy/ecosystem.config.cjs index 92b4241..e11a3c0 100644 --- a/deploy/ecosystem.config.cjs +++ b/deploy/ecosystem.config.cjs @@ -1,5 +1,5 @@ /** PM2 ecosystem — 杜康好客生产部署 */ -const APP_ROOT = '/opt/dukang-haoke'; +const APP_ROOT = '/opt/dukang'; module.exports = { apps: [ diff --git a/deploy/remote-release.sh b/deploy/remote-release.sh index 8bbb5c2..379a261 100644 --- a/deploy/remote-release.sh +++ b/deploy/remote-release.sh @@ -2,7 +2,7 @@ # 在服务器上执行:拉取后的常规发版(不覆盖 .env.production、默认不 seed) set -euo pipefail -APP_ROOT="${APP_ROOT:-/opt/dukang-haoke}" +APP_ROOT="${APP_ROOT:-/opt/dukang}" DEPLOY_DIR="$APP_ROOT/deploy" SKIP_BUILD=false