forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, сессии и Bearer-аутентификация (оценка 3)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
REM Windows equivalent of scripts/restart.sh for the local persistence hook.
|
||||
cd /d "%~dp0.."
|
||||
docker compose --env-file .env restart db api
|
||||
exit /b %ERRORLEVEL%
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# Explicit persistence hook for lab2.
|
||||
# Restart the API and the PostgreSQL storage that holds users, messages and sessions.
|
||||
# Volumes are preserved: no down -v, no flush, no re-seed. Exit 0 when the action is done;
|
||||
# the public test waits for /health/ready separately.
|
||||
cd "$(dirname "$0")/.."
|
||||
docker compose restart db api
|
||||
Reference in New Issue
Block a user