diff --git a/.gitignore b/.gitignore index ae53be55..e05d587e 100644 --- a/.gitignore +++ b/.gitignore @@ -28,14 +28,14 @@ src/**/src/*/java/**/*.received.* !.claude/agents/ !.claude/skills/ -# Operator input, not a build input. The examples beside it are the tracked contract; -# verifyEnvKeys reads the registry, the profile YAMLs and .env.example, never a real one. -/.env* -!/.env.example -!/.env.local.example - -# Written per run by the runtime-smoke wrapper; never committed. -/.env.lane +# Operator input, not a build input: a real environment file stays out in any folder, not only at +# the root. That covers .env, .env.local, a src/.env left over from before the relayout, the +# .env.lane the runtime-smoke wrapper writes per run, and any .env.. Only the two examples +# are tracked; they are the contract, and verifyEnvKeys reads the registry, the profile YAMLs and +# .env.example, never a real one. A new example needs its own ! line, or Git ignores it. +**/.env* +!**/.env.example +!**/.env.local.example # bootRun's file log when APP_LOG_FILE_ENABLED=true: APP_LOG_FILE_PATH is relative to the repository root. /logs/