Commit 8094eea7 by luoqi

fix(deploy): web 健康检查 curl /plans 而非 /(/ 现 307→/plans 致 deploy 误报失败)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 238c1446
......@@ -73,7 +73,8 @@ main() {
sleep 2
done
[[ "${code:-}" == "200" ]] || die "service health=$code"
webcode=$(curl -s -m 30 -o /dev/null -w '%{http_code}' http://127.0.0.1:3100/ || true)
# / 现为 307→/plans(next.config redirects),直接验 /plans 的 200
webcode=$(curl -s -m 30 -o /dev/null -w '%{http_code}' http://127.0.0.1:3100/plans || true)
[[ "$webcode" == "200" ]] || die "web http=$webcode"
echo " health 200 / web 200"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment