docs: name .env.example, not .env.dev, as the source of .env (PMS-708) #490
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/PMS-708-env-example-not-env-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Corrects every in-repo statement about how
.envcomes into existence. There is no.env.devfile;ensure-env(a dependency ofjust dev) generates.envfrom the committed.env.exampleand mints fresh random values for every self-owned secret (PMS-490), rather than copying a file.Changes
.env.devto.env" with the real generation-from-.env.examplebehavior (fresh secrets, third-party creds left as placeholders, idempotent per clone).${VAR:?... (which copies .env.dev to .env)}guard message now names.env.example, so a developer who trips a guard is pointed at the file that actually exists (not just the two AC-namedJWT_SECRET/ENCRYPTION_KEYguards, but all of them, plus the header comment)..env.dev" section (a hand-authored template carrying now-stale hardcodedpostgres/postgrespasswords and port 4301) is replaced by the actual flow:just devgenerates a working.env; you only edit it afterward for third-party creds. Fixes the remaining.env.devreferences in the boot steps, routine commands, and troubleshooting..env.devignore): swept to.env/.env.example. The README admin-bootstrap note also corrected, since.env.exampleshipsADMIN_EMAIL/ADMIN_PASSWORDempty (no defaults are shipped anymore).Acceptance criteria
grep -rn "env\.dev" .returns no hits for the.env.devfile (the sole remaining substring match is.env.development.local, an unrelated standard ignore for a different tool)..envas generated from.env.examplewith freshly generated self-owned secrets.JWT_SECRETandENCRYPTION_KEYguard messages name.env.example.Verification
just checkclean (fmt, clippy, compile, migration/mail/runner gates). No em-dashes introduced..envconfirmed still gitignored (git check-ignore .env).🤖 Generated with Claude Code
https://claude.ai/code/session_01QLd9c7niucrqx68v4AxVss
No `.env.dev` exists; `ensure-env` generates `.env` from the committed `.env.example` and mints fresh random self-owned secrets rather than copying a file (PMS-490). Fixes the CLAUDE.md "First run copies .env.dev to .env" claim and rewrites every `${VAR:?... copies .env.dev to .env}` compose guard message to name `.env.example`, so a developer hitting the guard is pointed at the file that actually exists. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QLd9c7niucrqx68v4AxVss