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:
dekun
2026-07-30 10:46:40 +08:00
parent 200702d066
commit da5eb4c18c
44 changed files with 4623 additions and 15 deletions
+3 -3
View File
@@ -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
+2 -2
View File
@@ -13,10 +13,10 @@ source "${LIB_DIR}/common.sh"
main_update() {
require_root
if ! REPO_ROOT="$(resolve_repo_root)"; then
die "未找到安装目录 ${INSTALL_ROOT},请先执行「1) 一键部署」"
die "未找到安装目录 ${INSTALL_ROOT},请先执行「1) 一键部署策略机"
fi
if ! repo_ready "${REPO_ROOT}"; then
die "安装不完整,请先执行「1) 一键部署」"
die "安装不完整,请先执行「1) 一键部署策略机」"
fi
step "更新 — 环境检测 (缺则装,有则跳过)"