We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f733809 + 7855524 commit 9622700Copy full SHA for 9622700
.github/workflows/deploy.yml
@@ -73,3 +73,17 @@ jobs:
73
# Verify that the symlink points to the latest deployment
74
echo "Deployment verification:"
75
ls -l $SYMLINK
76
+
77
+ # delay before performing healthcheck
78
+ sleep 10s
79
80
+ # perform healthcheck
81
+ echo "Performing health check on http://localhost:5000..."
82
+ STATUS_CODE=$(curl -o /dev/null -s -w "%{http_code}" http://localhost:5000)
83
84
+ if [ "$STATUS_CODE" -ne 200 ]; then
85
+ echo "Health check failed with status code: $STATUS_CODE"
86
+ exit 1
87
+ else
88
+ echo "Health check passed with status code: $STATUS_CODE"
89
+ fi
0 commit comments