forked from mtusi2026/mtusi2026lab2
9 lines
341 B
Bash
Executable File
9 lines
341 B
Bash
Executable File
#!/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
|