fix: use python health check inside container (no curl/wget in image)
All checks were successful
Deploy to Production / deploy (push) Successful in 59s
All checks were successful
Deploy to Production / deploy (push) Successful in 59s
This commit is contained in:
parent
e01569c412
commit
ea3afc526a
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: |
|
||||
echo "Waiting for backend..."
|
||||
for i in $(seq 1 30); do
|
||||
curl -sf http://localhost:5137/api/health > /dev/null 2>&1 && echo "✓ Backend healthy" && break
|
||||
docker exec cohorta-backend-1 python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:5137/api/health')" 2>/dev/null && echo "✓ Backend healthy" && break
|
||||
sleep 3
|
||||
done
|
||||
docker compose -f /opt/03-business/cohorta/docker-compose.yml ps
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue