Files
computer-playbook/scripts/tests/deploy/local/exec/restart.sh
kevinveenbirkenbachandClaude Opus 5 a1336de4f5 feat(make): add compose-app-restart for a single deployed container
Iterating on one app meant restarting the whole stack or reaching for raw
docker. The target mirrors compose-app-logs and goes through the
repository's own container wrapper.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 11:46:41 +02:00

21 lines
639 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Restart a single deployed app container of the local compose stack, through
# the repository's own `container` wrapper.
#
# Usage:
# app=<container> scripts/tests/deploy/local/exec/restart.sh # nocheck: self-path-reference
#
# Environment:
# app Container name of the deployed app (e.g. nextcloud).
#
# Examples:
# app=nextcloud scripts/tests/deploy/local/exec/restart.sh # nocheck: self-path-reference
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
: "${app:?app=<container> required, e.g. app=nextcloud}"
exec bash "${SCRIPT_DIR}/container.sh" container restart "${app}"