Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have a new function for updating ENV from example file. #23

Open
gpickin opened this issue Mar 9, 2023 · 0 comments
Open

Have a new function for updating ENV from example file. #23

gpickin opened this issue Mar 9, 2023 · 0 comments

Comments

@gpickin
Copy link
Contributor

gpickin commented Mar 9, 2023

Story: the .env.example file had been updated, but I didn't know to update my .env... since it wasn't a new key, but an old key that changed, my app behaved weird, until I figured out there had been a change.

I would like (and might build) a new function, or maybe update the populate function to allow you to set your variables, but only on the ones that differ.

I would love a way to see what changes exist between the .env and .env.example and overlay it nicely so we keep the formatting of the .env.example too.

So look through the .env.example, line by line replace the value, if the user wants to keep their .env file value.
You could skip the empty values in the .env.example because we always want something over nothing (I would think)

It bit me pretty hard on a big .env file, so this could help.
We could also detech timestamp changes in a .env.example - and prompt this if its newer than the .env file... just to verify you have updated keys, and not always waiting for that to happen.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant