调整部署后的公网健康检查

This commit is contained in:
chenpei 2026-07-07 22:08:31 +08:00
parent 5e924e51f9
commit 048825715d

View File

@ -755,8 +755,12 @@ PROD_SCRIPT
if [ "$TARGET" = "production" ]; then
log "Checking public FRP endpoints after deployment"
curl -fsS --max-time 12 "$PUBLIC_APP_URL/api/health" >/tmp/git-deploy-public-health.json
curl -fsS --max-time 12 "https://s3.jiansun.vip/minio/health/live" >/tmp/git-deploy-public-s3-health.txt
ok "Public FRP endpoints are healthy"
ok "Public application endpoint is healthy"
if curl -fsS --max-time 12 "https://s3.jiansun.vip/minio/health/live" >/tmp/git-deploy-public-s3-health.txt; then
ok "Public S3 endpoint is healthy"
else
warn "Public S3 endpoint is unhealthy; application deployment succeeded, check the storage tunnel separately"
fi
fi
else
warn "Skipping production deployment by request"