Add Fleet control plane and split manage.sh deploy menu.
Strategy nodes gain fleet token APIs; control/ app for local ops; manage.sh offers strategy vs control one-click deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# deploy/lib/install.sh — 一键部署
|
||||
# deploy/lib/install.sh — 一键部署策略机
|
||||
set -e
|
||||
set -u
|
||||
if [ -n "${BASH_VERSION:-}" ]; then
|
||||
@@ -13,7 +13,7 @@ source "${LIB_DIR}/common.sh"
|
||||
run_pipeline() {
|
||||
local root="$1"
|
||||
REPO_ROOT="${root}"
|
||||
step "构建并启动 (pull_and_restart.sh)"
|
||||
step "构建并启动策略机 (pull_and_restart.sh)"
|
||||
bash "${REPO_ROOT}/deploy/pull_and_restart.sh"
|
||||
pm2_save_startup
|
||||
verify_health || true
|
||||
@@ -22,7 +22,7 @@ run_pipeline() {
|
||||
|
||||
install_fresh() {
|
||||
require_root
|
||||
step "一键部署 — 环境检测与依赖"
|
||||
step "一键部署策略机 — 环境检测与依赖"
|
||||
ensure_system_deps
|
||||
step "克隆仓库 → ${INSTALL_ROOT}"
|
||||
if [[ -d "${INSTALL_ROOT}" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user