forked from mtusi2026/mtusi2026lab7
12 lines
359 B
Bash
Executable File
12 lines
359 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
restore() {
|
|
SESSION_TTL_SECONDS=3600 docker compose up -d --force-recreate --no-deps api
|
|
python3 scripts/wait_ready.py
|
|
}
|
|
trap restore EXIT
|
|
SESSION_TTL_SECONDS=2 docker compose up -d --force-recreate --no-deps api
|
|
python3 scripts/wait_ready.py
|
|
python3 student-tests/http_security.py expiry
|