build: add per-environment (test/prod) Makefile targets

Split env config into local vs remote:
- .env: local/shared config, always loaded (docker compose + make test)
- .env.test / .env.prod: full remote config, loaded on demand via ENV

Remote targets now generate -test/-prod variants (e.g. remote-install-prod);
a guard-env prerequisite blocks bare remote targets with no environment set.
Refresh .env.example to document the two-tier layout and add .env.prod/.env.test
to gitignore and the never-read list in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 14:02:13 +02:00
co-authored by Claude Opus 4.8
parent a1425e851b
commit 4dc5bf6812
4 changed files with 93 additions and 24 deletions
+2
View File
@@ -1,5 +1,7 @@
# Environment
.env
.env.prod
.env.test
# Grav CMS
/user/