Files
mtusi2026lab2/scripts/restart.sh
T
vest1ter 4937d6d4e8
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР2: PostgreSQL, сессии (Basic + Bearer), Compose, миграции
2026-10-16 11:11:00 +03:00

10 lines
341 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
# Hook для make test-persistence: перезапуск API и PostgreSQL с сохранением volumes.
set -eu
cd "$(dirname "$0")/.."
docker compose stop api postgres
# Порядок: postgres (healthy) -> migrate (exit 0) -> api (healthy).
docker compose up -d --wait
docker compose ps --format '{{.Name}} {{.Status}}'