diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-27 23:23:43 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-27 23:23:43 +0000 |
| commit | 7519de4e56323230d06cfc64b00df52339eb2434 (patch) | |
| tree | 87712be5ef45a6913601e729c18a67c20fee9f09 /modes/logs.sh | |
Add modal-shell project with .agent/ config, mode stubs, ms dispatcher,
bare repo at /site/git.terst.org/repos/modal-shell.git, and ADR-001.
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 |
