fix(deploy): correct APP_ROOT to /opt/dukang
CI / verify (pull_request) Has been cancelled

Server path is /opt/dukang; stale /opt/dukang-haoke broke PM2 cwd for mini-user H5.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-21 10:10:35 +08:00
parent 935ab0d1d4
commit 6c6fb10490
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# 复制为 auto-release.env(勿提交 Git # 复制为 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_REPO_URL=git@git.yqidian.com:jacy/dukang.git
GIT_REMOTE=origin GIT_REMOTE=origin
GIT_BRANCH=dev GIT_BRANCH=dev
+1 -1
View File
@@ -5,7 +5,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ENV_FILE="$SCRIPT_DIR/auto-release.env" 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_REMOTE="${GIT_REMOTE:-origin}"
GIT_BRANCH="${GIT_BRANCH:-dev}" GIT_BRANCH="${GIT_BRANCH:-dev}"
LOCK_FILE="${DEPLOY_LOCK_FILE:-/var/run/dukang-deploy.lock}" LOCK_FILE="${DEPLOY_LOCK_FILE:-/var/run/dukang-deploy.lock}"
+1 -1
View File
@@ -4,7 +4,7 @@ DEPLOY_USER=root
DEPLOY_PORT=22 DEPLOY_PORT=22
# DEPLOY_SSH_KEY=~/.ssh/id_rsa # DEPLOY_SSH_KEY=~/.ssh/id_rsa
APP_ROOT=/opt/dukang-haoke APP_ROOT=/opt/dukang
# 生产仓库(SSH # 生产仓库(SSH
GIT_REPO_URL=git@git.yqidian.com:jacy/dukang.git GIT_REPO_URL=git@git.yqidian.com:jacy/dukang.git
GIT_REMOTE=origin GIT_REMOTE=origin
+1 -1
View File
@@ -9,7 +9,7 @@ DEPLOY_HOST=""
DEPLOY_USER="root" DEPLOY_USER="root"
DEPLOY_PORT="22" DEPLOY_PORT="22"
DEPLOY_SSH_KEY="" DEPLOY_SSH_KEY=""
APP_ROOT="/opt/dukang-haoke" APP_ROOT="/opt/dukang"
GIT_REMOTE="origin" GIT_REMOTE="origin"
GIT_BRANCH="dev" GIT_BRANCH="dev"
+1 -1
View File
@@ -1,5 +1,5 @@
/** PM2 ecosystem — 杜康好客生产部署 */ /** PM2 ecosystem — 杜康好客生产部署 */
const APP_ROOT = '/opt/dukang-haoke'; const APP_ROOT = '/opt/dukang';
module.exports = { module.exports = {
apps: [ apps: [
+1 -1
View File
@@ -2,7 +2,7 @@
# 在服务器上执行:拉取后的常规发版(不覆盖 .env.production、默认不 seed # 在服务器上执行:拉取后的常规发版(不覆盖 .env.production、默认不 seed
set -euo pipefail set -euo pipefail
APP_ROOT="${APP_ROOT:-/opt/dukang-haoke}" APP_ROOT="${APP_ROOT:-/opt/dukang}"
DEPLOY_DIR="$APP_ROOT/deploy" DEPLOY_DIR="$APP_ROOT/deploy"
SKIP_BUILD=false SKIP_BUILD=false