Add production log access instructions to AGENTS.md
All checks were successful
Deploy / deploy (push) Successful in 2m30s
All checks were successful
Deploy / deploy (push) Successful in 2m30s
Document how to use Nomad CLI to view production logs for debugging. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
20
AGENTS.md
20
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`.
|
||||
|
||||
Reference in New Issue
Block a user