Files
mtusi2026lab2/scripts/restart.sh
T
2026-10-09 15:48:03 +03:00

9 lines
378 B
Bash
Executable File

#!/usr/bin/env bash
# Restart hook for `make test-persistence ACTION_SCRIPT=scripts/restart.sh`.
# Semantic and evidence notes: tests/README.md ("Проверка сохранности") and REPORT.md.
set -euo pipefail
compose=(docker compose --env-file .env)
"${compose[@]}" restart postgres redis api
"${compose[@]}" up -d --no-recreate --no-deps --wait postgres redis api