From ecf9481dfe59d1f27b1bc31cf77f1e388e1f10fd Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 26 May 2026 04:07:33 +0800 Subject: [PATCH] =?UTF-8?q?smoke=20test=20=E4=BF=AE=E5=A4=8D=EF=BC=9Ascan?= =?UTF-8?q?=20terminal=20=E6=8D=A2=20api/cities=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=20pre-warm=20=E9=98=BB=E5=A1=9E=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2ba422e4..6879ab35 100644 --- a/deploy.sh +++ b/deploy.sh @@ -21,7 +21,7 @@ export IMAGE_TAG="$NEW_TAG" docker compose pull docker compose up -d -# Wait for backend to be ready (retry up to 60s) +# Wait for backend to be ready (retry up to 150s) echo "Waiting for backend..." for i in $(seq 1 30); do sleep 5 @@ -34,7 +34,7 @@ done FAILED=0 curl -fsSo /dev/null --max-time 15 "https://api.polyweather.top/healthz" && echo "✅ healthz" || { echo "❌ healthz"; FAILED=1; } -curl -fsSo /dev/null --max-time 15 "https://api.polyweather.top/api/scan/terminal?limit=1" && echo "✅ scan" || { echo "❌ scan"; FAILED=1; } +curl -fsSo /dev/null --max-time 10 "https://api.polyweather.top/api/cities" && echo "✅ cities" || { echo "❌ cities"; FAILED=1; } curl -fsSo /dev/null --max-time 10 "https://www.polyweather.top/" && echo "✅ frontend" || { echo "❌ frontend"; FAILED=1; } if [ "$FAILED" = "1" ]; then