feat: 所有页面添加ICP备案号 浙ICP备2026052792号
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
# --init-env 初始化 systemd service 模板
|
||||
# --deploy-service 上传 systemd service 文件到服务器
|
||||
# --target blue|green 蓝绿部署目标(默认单实例)
|
||||
# --remote-host IP 部署目标服务器(默认 1panel-server)
|
||||
# ===========================================
|
||||
|
||||
set -euo pipefail
|
||||
@@ -56,6 +57,7 @@ while [[ $# -gt 0 ]]; do
|
||||
--init-env) INIT_ENV=true ;;
|
||||
--deploy-service) DEPLOY_SERVICE=true ;;
|
||||
--target) BG_TARGET="${2:-}"; shift ;;
|
||||
--remote-host) REMOTE_HOST="${2:-}"; shift ;;
|
||||
--help|-h)
|
||||
echo "用法: $0 [development|production] [options]"
|
||||
echo ""
|
||||
@@ -64,6 +66,7 @@ while [[ $# -gt 0 ]]; do
|
||||
echo " --yes, -y 跳过确认"
|
||||
echo " --skip-tests 跳过部署后测试"
|
||||
echo " --target blue|green 蓝绿部署目标(默认单实例)"
|
||||
echo " --remote-host IP 部署目标服务器(默认 1panel-server)"
|
||||
echo " --rollback 回滚到指定备份"
|
||||
echo " --backup-list 列出可用备份"
|
||||
echo " --logs [N] 查看后端日志(默认50行)"
|
||||
|
||||
Reference in New Issue
Block a user