webadmin端增加版本号和部署功能

This commit is contained in:
2026-07-12 13:52:22 +08:00
parent 63af3321dd
commit d271ac5b13
16 changed files with 329 additions and 5 deletions
+6
View File
@@ -92,4 +92,10 @@ curl -sf -o /dev/null -w "api: %{http_code}\n" http://127.0.0.1:8090/api/v1/heal
|| curl -sf -o /dev/null -w "api: %{http_code}\n" http://127.0.0.1:8090/ \
|| echo "api: FAIL"
echo "==> 7. 记录系统版本"
cd "$APP_ROOT/server/dukang-api"
APP_ROOT="$APP_ROOT" DEPLOY_TRIGGER="${DEPLOY_TRIGGER:-manual}" \
node scripts/with-api-env.cjs node scripts/record-system-version.cjs \
|| echo "WARN: system_version 写入失败"
echo "==> 发版完成"