chore: initial commit of ai site platform
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
30
start.sh
Normal file
30
start.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# AI 建站 — Linux 一键启动(Docker Compose)
|
||||
# 用法:cd 项目根 && ./start.sh [--rebuild]
|
||||
# 行尾:LF
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$ROOT"
|
||||
# shellcheck disable=SC1091
|
||||
. "$ROOT/scripts/lib-aijz-deploy.sh"
|
||||
|
||||
REBUILD=0
|
||||
for a in "$@"; do
|
||||
case "$a" in
|
||||
--rebuild|-r) REBUILD=1 ;;
|
||||
-h|--help)
|
||||
echo "用法: $0 [--rebuild]"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "========================================"
|
||||
echo " AI 建站 启动"
|
||||
echo " 路径: $ROOT"
|
||||
echo "========================================"
|
||||
|
||||
ensure_docker
|
||||
stack_up "$REBUILD"
|
||||
healthcheck
|
||||
print_endpoints
|
||||
Reference in New Issue
Block a user