Dotenv: Difference between revisions

From Helpful
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 as an ,
'''{{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.
 
that is specifically separate from any code
 




Line 22: Line 19:




Is it still a good habit to put all your secrets in separate place
Is it still a decent habit?
that, out of being a common convention, you can recognize as "don't share this?"
: Sure.
: Yup.
:: 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