We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b76ded commit 6fc86b4Copy full SHA for 6fc86b4
.github/workflows/deploy-prod.yml
@@ -47,8 +47,16 @@ jobs:
47
48
- name: Test Frontend Is Live
49
run: |
50
- curl --fail --silent --show-error https://forever.aimablem.dev || exit 1
51
-
+ for i in {1..10}; do
+ echo "Checking backend (try $i)..."
52
+ if curl --fail --silent --show-error https://forever.aimablem.dev; then
53
+ echo "Frontend is up!"
54
+ exit 0
55
+ fi
56
+ sleep 5
57
+ done
58
+ echo "Frontend failed to respond after 10 attempts."
59
+ exit 1
60
- name: Test Backend Is Live
61
62
for i in {1..10}; do
0 commit comments