11

For a while I've noticed that many people use dotenv in a suboptimal way, so yesterday I took the time to write a short article about better usage patterns (pretty basic stuff, so if you are an expert it's likely that you will find it boring):

you are viewing a single comment's thread
view the rest of the comments
[-] nous@programming.dev 2 points 3 years ago

I’m also not sure what’s so hard to just… source the .env file before you run your app.

It is a quality of life improvement - maybe a minor one but it is an improvement. I think small quality of life improvements are important, as the fewer of them you have the bigger the problem as a whole they become.

That said, I think .env files are the wrong solution to the problem at hand. As you said, configuration files are the better way to solve this specific problem.

this post was submitted on 26 Jun 2023
11 points (92.3% liked)

Web Development

5793 readers
15 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 3 years ago
MODERATORS