From 1555c8020a24c13894a48e0561fdce0989e5428b Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Mon, 24 Aug 2026 23:14:33 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E7=9A=84=E5=8D=95=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E5=B5=8C=E5=A5=97=E6=88=AA=E6=96=AD=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E7=94=A8=20frontend=20=E5=AE=B9=E5=99=A8=20w?= =?UTF-8?q?get=20=E6=8E=A2=E6=B5=8B=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-test.yml b/.gitea/workflows/deploy-test.yml index 9e19988..bf88122 100644 --- a/.gitea/workflows/deploy-test.yml +++ b/.gitea/workflows/deploy-test.yml @@ -124,10 +124,10 @@ jobs: fi echo "前端 OK" - echo "===== 后端健康 (/health 容器内自检,带重试) =====" + echo "===== 后端健康 (frontend 容器 wget → server:8788,带重试) =====" BOK=0 for i in $(seq 1 60); do - if docker exec perler-lab-server node -e "fetch('http://localhost:8788/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))" 2>/dev/null; then BOK=1; break; fi + if docker exec perler-lab-frontend wget -qO- http://server:8788/health >/dev/null 2>&1; then BOK=1; break; fi sleep 5 done if [ "$BOK" != "1" ]; then