Sync your .env file with .env.example as "template"? #38
shineability
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was checking out this package and I love how it works.
I synced/pruned an
.env.example
file and some variables were added. By default the new variables are added to the bottom. Typically I would reorder some of them if they belong to a "group" of related variables. Having the variables ordered and organized doesn't necessarily matter for the app to work, but it feels important to me, though. E.g. variables for an Azure AD are grouped together, variables for dev tools are grouped together, ...At this point I have an updated and organised "template" of which environment variables are needed for this project which will be committed to the repo as a reference for other developers.
Now, instead of adding the
.env
to theenvironment_files
config, which is probably not a good idea as mentioned in the docs, I would like to "sync" my current.env
using the.env.example
as a "template". The same way the.env.example
is used to generate your.env
file when installing a new Laravel project...High level this would mean:
.env.example
file and reorder if necessary.env
file.env.example
file.env
with its current value.env
Does this idea have any merit? :)
Beta Was this translation helpful? Give feedback.
All reactions