Skip to content

Environment Variables: For and Against

gist.github.com
25 pointssriharis4 comments
On HN

Comments

Warning: this isn't fun to read on mobile

All they had to do was change the file extension to .md

Wow thank you that made a world of difference.

I thought it was normal practice not to export environment variables so they are only available to a particular process.

I think env variables are bad for passing info between processes, but are good for loading different configurations into processes consistently.

I always load my env from some config file, but I like that the apps don’t care how config gets stored. I like the abstraction of the process not needing to be aware of how config is managed.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.