chore: track Linux deploy scripts with forced git pull
Ship start/restart/pull-and-restart and deploy lib so production can one-line update; git_pull_hard uses checkout -f, restart --pull aligns then restarts.
This commit is contained in:
13
stop.sh
Normal file
13
stop.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# AI 建站 — 停止 Docker 栈
|
||||
# 用法:./stop.sh
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$ROOT"
|
||||
# shellcheck disable=SC1091
|
||||
. "$ROOT/scripts/lib-aijz-deploy.sh"
|
||||
|
||||
echo "停止 AI 建站 ($ROOT) ..."
|
||||
ensure_docker
|
||||
stack_down
|
||||
echo "已停止."
|
||||
Reference in New Issue
Block a user