forked from mtusi2026/mtusi2026lab2
10 lines
428 B
Batchfile
10 lines
428 B
Batchfile
@echo off
|
|
rem Windows restart hook for "make test-persistence": same steps as scripts/restart.sh.
|
|
rem Python on Windows cannot run .sh directly (WinError 193), so this .cmd is used instead.
|
|
rem Restarts API and ALL stores (PostgreSQL, Valkey); volumes are kept (no down -v).
|
|
cd /d "%~dp0.."
|
|
docker compose stop api || exit /b 1
|
|
docker compose restart postgres valkey || exit /b 1
|
|
docker compose start api || exit /b 1
|
|
exit /b 0
|