diff options
Diffstat (limited to 'modes/logs.sh')
| -rwxr-xr-x | modes/logs.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modes/logs.sh b/modes/logs.sh new file mode 100755 index 0000000..ae396bc --- /dev/null +++ b/modes/logs.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +# logs — stream runtime logs for the project +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +# shellcheck source=base.sh +source "$SCRIPT_DIR/base.sh" + +cd "$PROJECT_ROOT" + +# ── TODO: uncomment and configure for your runtime ─────────────────────────── + +# Docker Compose (all services) +# exec docker compose logs -f + +# Docker Compose (specific service) +# exec docker compose logs -f app + +# journald +# exec journalctl -fu your-service-name + +# Log file +# exec tail -f "$PROJECT_ROOT/logs/app.log" + +echo "error: no log source configured in modes/logs.sh" >&2 +exit 1 |
