Prod needs twig.cache:true / debug:false / auto_reload:false, but those values break local dev, so they must not live in the committed system.yaml. Add a per-environment override deployed only to the server via Grav's environment://config (user/env/<host>/config/system.yaml): - deploy/env/prod/system.yaml — version-controlled source of truth. - make remote-apply-env-prod — writes it to the server + clears cache; resolves the host in-recipe (WEB_HOST || REMOTE_HOST) to avoid the recursive-make empty-export trap. - remote-diag now shows the deployed override + whether twig cache is populating, so prod-mode can be verified not assumed. - CLAUDE.md §1 rewritten: never flip committed system.yaml; use the override. Backlog updated (twig prod-mode + /post login-gate done; note stale .env.prod GRAV_VERSION and pending git-sync). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Np4cMQLF77i664CAQXySzU
1.7 KiB
1.7 KiB
Backlog
Ideas and improvements not yet planned or scheduled.
Production — remaining items
- Prod Twig prod-mode (
cache: true,debug/auto_reload: false) — applied as a per-environment override viamake remote-apply-env-prod(source:deploy/env/prod/system.yaml); committedsystem.yamlstays dev - Smoke test: submit one post via
/post, confirm entry appears in dailies immediately (verifies cache-on-save with twig cache on) - Confirm
/postrequires login — verified on prod (returns the login gate to unauthenticated visitors) - Register at carto.com and review terms for production traffic
- Update
GRAV_VERSIONin.env.prodto2.0.4(was stale2.0.0-rc.10; fixed on the running server via self-upgrade, but a future fresh install would repeat the RC) - git-sync on prod: install, add encrypted token, apply
folders:fix, enable after first content round-trip
GPX Manager (/gpx-manager)
- Polish the UI — the current design is functional but bare; align with the Field Notes aesthetic, add better empty states, drag-and-drop upload area
- Link from Admin2 — Admin2 is a compiled SPA so we can't inject a sidebar link; options: (1) add a link to the site's nav when logged in, (2) a bookmarklet, or (3) wait for Admin2 to support plugin-contributed sidebar entries
- Komoot integration — explore how to pull GPX routes directly from Komoot without a manual export step. Komoot has an API (
api.komoot.de) that returns GPX for a tour given its ID. Could be: a field on the GPX manager where you paste a Komoot tour URL/ID and it fetches + saves server-side, or a script run viamake. Worth researching auth requirements (public tours may not need auth).