Files
mtusi2026lab2/scripts/restart.sh
T
DeUnru 5bba1f6cff
Skeleton contracts / contracts (pull_request) Canceled after 0s
Выполение лабораторной 2
2026-10-24 20:44:30 +03:00

11 lines
195 B
Bash

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
if [ ! -f .env ]; then
echo "restart.sh: .env is missing (copy .env.example and fill it)" >&2
exit 1
fi
docker compose --env-file .env restart