debug response
This commit is contained in:
@@ -140,7 +140,8 @@ jobs:
|
|||||||
|
|
||||||
for i in {1..1200}; do
|
for i in {1..1200}; do
|
||||||
echo "Checking server health ($i/1200)..."
|
echo "Checking server health ($i/1200)..."
|
||||||
response=$(curl --silent --fail --write-out "%{http_code}" -v ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
|
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
|
||||||
|
echo "HTTP Status Code: $response"
|
||||||
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
|
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
|
||||||
echo "Server is healthy"
|
echo "Server is healthy"
|
||||||
# Now, shutdown the server
|
# Now, shutdown the server
|
||||||
|
|||||||
Reference in New Issue
Block a user