use next-webapp-url for curl req domain

This commit is contained in:
Syed Ali Shahbaz
2023-09-28 18:02:44 +04:00
committed by GitHub
parent 933f4722e9
commit 92512fd052

View File

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