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:
@@ -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
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
@@ -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
@@ -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,5 +1,5 @@
|
|||||||
/** PM2 ecosystem — 杜康好客生产部署 */
|
/** PM2 ecosystem — 杜康好客生产部署 */
|
||||||
const APP_ROOT = '/opt/dukang-haoke';
|
const APP_ROOT = '/opt/dukang';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
apps: [
|
apps: [
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user