One-shot release pipeline for syj-shop variant: admin build -> rsync to 8.140.50.89 -> remote .env switch + cache clear + Swoole reload -> healthcheck with auto-rollback on failure. Includes operations manual under docs/project-syj/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
28 lines
686 B
Plaintext
28 lines
686 B
Plaintext
# syj 商城变体发布参数(被 release-syj.sh source)
|
||
# 修改后立即生效,不需要重新构建
|
||
|
||
SSH_USER=root
|
||
SSH_HOST=8.140.50.89
|
||
SSH_PORT=22
|
||
REMOTE_ROOT=/www/wwwroot/syj.fsgx.cn
|
||
REMOTE_BAK=/www/wwwroot/syj.fsgx.cn-bak
|
||
|
||
# 健康检查 URL,任一非 200 即触发回滚
|
||
HEALTH_URLS=(
|
||
"https://syj.fsgx.cn/api/version"
|
||
"https://syj.fsgx.cn/admin/"
|
||
)
|
||
|
||
# 备份保留数量(远端 REMOTE_BAK 下保留最近 N 份)
|
||
KEEP_BACKUPS=10
|
||
|
||
# 期望分支;不一致时脚本会要求二次确认
|
||
EXPECTED_BRANCH=syj-bypass-auth
|
||
|
||
# 远端 .env 取自该文件(位于 pro_v3.5.1/ 根)
|
||
ENV_SOURCE_FILE=.env-syj
|
||
|
||
# 健康检查重试
|
||
HEALTH_RETRY=5
|
||
HEALTH_INTERVAL=3
|