Commit graph

6 commits

Author SHA1 Message Date
07e67d4684 Make godotenv.Load() best-effort to support containerized deployments
A missing .env file no longer causes a fatal error. Env vars can now
come from the container environment (Docker/systemd) or a .env file
interchangeably.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 18:22:37 -04:00
6371d5136f Rename USERNAME/PASSWORD env vars to EMAIL_USERNAME/EMAIL_PASSWORD
Avoids collision with standard Linux shell variables that would cause
silent authentication failures against the IMAP server.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 16:56:13 -04:00
713a96501d Add error logging to awp-cli with configurable log file
- Route all log output to AWP_LOG_FILE (from .env) if set, else stderr
- Log errors explicitly before returning so they appear in the log file
- Replace log.Fatal in fetch.go with proper error return so callers control logging
- Remove chatty success/no-op log lines that would bloat cron log files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 16:45:56 -04:00
04f687a278 Fix build errors and upgrade templ to v0.3.1020
- Add missing bcc argument to NewEmail call in pkg/email/fetch.go
- Upgrade github.com/a-h/templ from v0.3.833 to v0.3.1020 to match generator
- Add player management routes (add/delete/edit) and playershandler
- Update templates and loaddata with pending changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 20:05:53 -04:00
4a778b1dc0 Add uncommitted changes before migration 2025-12-21 12:25:17 -05:00
9f894671b0 Full app, v1.0. Contains web app and cli. 2024-01-20 21:45:53 -05:00