You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rename the Environment Files to a Lowercase blog Prefix #317
The per-environment files are named ~/.secrets/Blog.<server>.<environment>.env, with a capital B. Secret files on Linux are conventionally all lowercase, and the other files in the same ~/.secrets/ directory already are. Rename the pattern to ~/.secrets/blog.<server>.<environment>.env.
Scope
The <server>.<environment> part and the .env suffix stay as they are. Only the prefix changes, in every place the name is written:
File
References
deploy/make-release.sh
3, including DEFAULT_ENV_FILE and the usage text
OPERATIONS.md
16
deploy/README.md
11
.secrets/example.env
6
.secrets/README.md
5
ENVIRONMENT.md
3
README.md
3
capture/README.md
2
TODO.md
1
git grep -n 'Blog\.\(local\|vps\|<server>\)' lists them all. No workflow reads these files, because CI takes its values from GitHub environments, so nothing in .github/ changes.
Cutover
make-release.sh falls back to the local production file when ENV_FILE is unset, so after the merge the old file name is no longer found. On the workstation, rename the four existing files in the same step as pulling the change. Don't add a fallback to the old name, since a second accepted spelling is how a stale file ends up being the one read.
Verification
git grep for the capitalized pattern returns nothing.
deploy/make-release.sh with ENV_FILE unset finds the renamed local production file.
A local staging release and checks/check-live-urls.sh pass, reading the renamed staging file.
Activity