From 7519de4e56323230d06cfc64b00df52339eb2434 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Fri, 27 Mar 2026 23:23:43 +0000 Subject: Initial project setup 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. --- modes/logs.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 modes/logs.sh (limited to 'modes/logs.sh') 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 -- cgit v1.2.3