chore: initial commit of ai site platform
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
22
pull-and-restart.sh
Normal file
22
pull-and-restart.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# AI 建站 — 拉取代码并重启
|
||||
# 用法:./pull-and-restart.sh
|
||||
# 环境变量:GIT_BRANCH(默认 master)、FORCE_GIT_RESET(默认 1,与远程硬对齐)
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$ROOT"
|
||||
# shellcheck disable=SC1091
|
||||
. "$ROOT/scripts/lib-aijz-deploy.sh"
|
||||
|
||||
echo "========================================"
|
||||
echo " AI 建站 拉取并重启"
|
||||
echo " 路径: $ROOT"
|
||||
echo "========================================"
|
||||
|
||||
ensure_docker
|
||||
git_pull_hard || true
|
||||
stack_down
|
||||
sleep 1
|
||||
stack_up 1
|
||||
healthcheck
|
||||
print_endpoints
|
||||
Reference in New Issue
Block a user