fix: align deploy health checks with live endpoint
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s

This commit is contained in:
ogt
2026-06-25 14:45:02 +08:00
parent 83561c8530
commit 903cf1a27a
12 changed files with 76 additions and 45 deletions

View File

@@ -97,7 +97,7 @@ compare_health() {
log "💓 比對服務健康狀態..."
UAT_HEALTH=$(curl -s -o /dev/null -w '%{http_code}' "https://mo.wooo.work/health" 2>/dev/null)
GCP_HEALTH=$(curl -s -o /dev/null -w '%{http_code}' "https://momo.wooo.work/health" 2>/dev/null)
GCP_HEALTH=$(curl -s -o /dev/null -w '%{http_code}' "https://mo.wooo.work/health" 2>/dev/null)
log " UAT: ${UAT_HEALTH}"
log " GCP: ${GCP_HEALTH}"
@@ -228,7 +228,7 @@ main() {
<b>檢查時間:</b> $(date '+%Y-%m-%d %H:%M:%S')
<b>UAT:</b> https://mo.wooo.work
<b>GCP:</b> https://momo.wooo.work
<b>正式入口:</b> https://mo.wooo.work
所有配置、版本、服務狀態一致。"
fi

View File

@@ -34,8 +34,7 @@ NC='\033[0m'
declare -A DOMAINS=(
# 核心業務 - 最高優先級
["https://mo.wooo.work/health"]="200|MOMO App UAT|kubectl rollout restart deployment/momo-app -n momo|60"
["https://momo.wooo.work/health"]="200|MOMO App GCP|gcloud compute ssh momo-pro-gcp --zone=asia-east1-b --command='sudo kubectl rollout restart deployment/momo-app -n momo'|60"
["https://mo.wooo.work/health"]="200|MOMO Pro 正式入口|ssh ollama@192.168.0.188 'cd /home/ollama/momo-pro && docker compose up -d --no-deps --force-recreate momo-app'|60"
# CI/CD 工具 - 高優先級GitLab 需要更長啟動時間)
["http://192.168.0.110:8929/"]="200|GitLab|docker restart wooo-gitlab|120"