mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
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>
21 lines
639 B
Bash
Executable File
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}"
|