Redirect is also representative of healthy

This commit is contained in:
Syed Ali Shahbaz
2023-09-28 20:40:02 +04:00
committed by GitHub
parent bd8a941f50
commit ff0db3a97c

View File

@@ -141,7 +141,7 @@ jobs:
for i in {1..1200}; do
echo "Checking server health ($i/1200)..."
response=$(curl --silent --fail --write-out "%{http_code}" -v ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
if [[ "$response" == "200" ]]; then
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
echo "Server is healthy"
# Now, shutdown the server
kill $server_pid