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

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

34 lines
604 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
if [[ ! -f .env ]]; then
echo "缺少 .env"
exit 1
fi
set -a
# shellcheck disable=SC1091
source .env
set +a
code=0
echo -n "门户 "
if curl -fsS -o /dev/null -w "%{http_code}\n" -H "Host: ${SITE_DOMAIN}" http://127.0.0.1/; then
true
else
code=1
fi
echo -n "后台 "
if curl -fsS -o /dev/null -w "%{http_code}\n" -H "Host: ${SITE_DOMAIN}" http://127.0.0.1/admin/; then
true
else
code=1
fi
echo -n "接口 "
if curl -fsS -H "Host: ${SITE_DOMAIN}" http://127.0.0.1/api/site/health; then
echo
else
code=1
fi
docker compose ps
exit "$code"