fix: correct health check endpoint from /api/v1/health to /health

This commit is contained in:
2026-02-28 17:09:41 +08:00
parent 94cd83ea2c
commit e5c82b1a95

View File

@@ -11,8 +11,8 @@ GIT_REPO="${SPUG_GIT_URL:-https://gitea.gentronhealth.com/chenqi/hospital_perfor
GIT_BRANCH="${SPUG_GIT_BRANCH:-main}" GIT_BRANCH="${SPUG_GIT_BRANCH:-main}"
# 服务配置 # 服务配置
BACKEND_PORT="${BACKEND_PORT:-8000}" BACKEND_PORT="${BACKEND_PORT:-5757}"
FRONTEND_PORT="${FRONTEND_PORT:-80}" FRONTEND_PORT="${FRONTEND_PORT:-5758}"
# 环境变量 # 环境变量
export DATABASE_HOST="${DATABASE_HOST:-192.168.110.252}" export DATABASE_HOST="${DATABASE_HOST:-192.168.110.252}"
@@ -162,7 +162,7 @@ max_attempts=10
attempt=1 attempt=1
while [ $attempt -le $max_attempts ]; do while [ $attempt -le $max_attempts ]; do
if curl -f -s "http://localhost:${BACKEND_PORT}/api/v1/health" > /dev/null 2>&1; then if curl -f -s "http://localhost:${BACKEND_PORT}/health" > /dev/null 2>&1; then
echo "✅ 后端 API 健康检查通过" echo "✅ 后端 API 健康检查通过"
break break
else else