ci: check port 80 (via Nginx) instead of 3000
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 4s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 4s
Made-with: Cursor
This commit is contained in:
@@ -37,11 +37,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Wait for app to be healthy
|
- name: Wait for app to be healthy
|
||||||
run: |
|
run: |
|
||||||
echo "Waiting up to 180s for http://192.168.1.190:3000 ..."
|
echo "Waiting up to 180s for http://192.168.1.190 ..."
|
||||||
for i in $(seq 1 36); do
|
for i in $(seq 1 36); do
|
||||||
CODE=$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 http://192.168.1.190:3000/ || echo "000")
|
CODE=$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 -L http://192.168.1.190/ || echo "000")
|
||||||
if [ "$CODE" != "000" ] && [ "$CODE" -lt 500 ]; then
|
if [ "$CODE" != "000" ] && [ "$CODE" -lt 500 ]; then
|
||||||
echo "OK - app responded (HTTP $CODE) after $((i * 5))s"
|
echo "✅ App OK (HTTP $CODE) after $((i * 5))s"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo " [$((i * 5))s] HTTP $CODE"
|
echo " [$((i * 5))s] HTTP $CODE"
|
||||||
|
|||||||
Reference in New Issue
Block a user