3 ms·
I don't understand what more it does than sourcing a file on your shell would? Anyone can explain?
by prmoustache 3y ago
I don't understand what more it does than sourcing a file on your shell would? Anyone can explain?
- steezeburger 3y agoYou can't source an .env file without some munging. All the keys would need `export` in front of them I believe.
- kazinator 3y agoA sourced .env would have to be correct shell syntax for a sourced environment file, yes.
- maple3142 3y agoBut a lot of env file doesn't do that iirc. `allexport` solves this though.
- prmoustache 3y agoYou can implement that in a simple shell function anyway.
- prmoustache 3y agoThat doesn't seem like a huge barrier compared to shipping a dotenv binary compiled specifically to all deployment arch.
- steezeburger 3y agoIt's not a huge barrier, but it's still a barrier. I have lots of infra using Helm/K8s, sometimes Docker. These .env files don't have `export` keywords in them. So your suggestion is to munge these for local development. And you're okay with that barrier? That's terrible dx, and it adds surface area for bugs.