Dotenv: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
<!-- | <!-- | ||
(not to be confused with [[.envrc]]) | (not to be confused with [[direnv]] and its [[.envrc]]) | ||
.env files are intended | '''{{inlinecode|.env}}''' files are intended to keep environment variables that parts of your project should pick up, | ||
that is easy to keep out of source management, | that is easy to keep out of source management - that is, it is a name you can know shouldn't be there. | ||
Line 22: | Line 19: | ||
Is it still a | Is it still a decent habit? | ||
: Sure. | |||
:: it makes it much easier to not put secrets into code | |||
:: it makes it much easier to not accidentally share it (you can argue it should have been called ''secrets-do-not-share'' but eh...) | |||
Revision as of 12:33, 7 May 2024