Files
mtusi2026lab2/scripts/restart.bat
T
Leskovskiy a6fd77d6a5
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab2: PostgreSQL persistence, sessions, password KDF
2026-11-16 23:11:03 +03:00

9 lines
280 B
Batchfile

@echo off
docker compose restart api postgres
:wait
docker compose exec -T api python -c "import urllib.request;urllib.request.urlopen('http://localhost:8080/health/ready',timeout=2)" >nul 2>&1
if %errorlevel% neq 0 (
timeout /t 1 /nobreak >nul
goto wait
)
echo restart OK