Files
gsfdc/deploy/up.sh
T
wuzilongandCursor 9c7c80e194 feat: 把估价智能体和部署配置提交到主分支
门户估价对话、会员与智能体账号,以及生产 Docker 部署一直停在工作区,远端主分支还没有这些改动。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-23 09:42:44 +08:00

16 lines
328 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
created=0
if [[ ! -f .env ]]; then
./init-env.sh
created=1
fi
./render-nginx.sh
if [[ "$created" == 1 && "${1:-}" != "--yes" ]]; then
echo "请先核对 .env 里的域名。确认后执行 ./up.sh --yes"
exit 0
fi
docker compose --env-file .env up -d
docker compose ps