diff --git a/AGENTS.md b/AGENTS.md index 45c7b42..67d8f84 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,26 @@ Run these after implementing to get immediate feedback: - Path aliases: `@/*` maps to `./src/*` - Pre-commit hooks: Biome lint + Vitest tests via Lefthook +## Production Logs + +Access production logs via Nomad CLI: + +```bash +# Check job status and get current allocation ID +nomad job status phaseflow + +# View app logs (replace ALLOC_ID with current allocation) +nomad alloc logs ALLOC_ID app + +# Tail recent logs +nomad alloc logs ALLOC_ID app | tail -100 + +# Filter for specific log patterns +nomad alloc logs ALLOC_ID app | grep -E "pattern" +``` + +The allocation has two tasks: `app` (Next.js) and `pocketbase` (database). + ## Database Setup PocketBase requires these collections: `users`, `period_logs`, `dailyLogs`.