Some projects are going to want to put env vars that are shared in all envs and shipped in the repo, even as a placeholder, like this:
Right now we don't allow this because the user has to first create an env, then open the .env file, then copy and paste the values there.
I would like our code that loads env vars from the current env to also check and load a .env file from the root of the repo, if it exists.
Values in env/.env values would override values in root/.env, so load root/.env first and then env/.env
If we have .env file in root of repo
And this in the env/.env file
Then SOMEVALUE would be set to BAR
If we only have, root/.env:
Then SOMEVALUE would be set to FOO.
Some projects are going to want to put env vars that are shared in all envs and shipped in the repo, even as a placeholder, like this:
Right now we don't allow this because the user has to first create an env, then open the .env file, then copy and paste the values there.
I would like our code that loads env vars from the current env to also check and load a .env file from the root of the repo, if it exists.
Values in env/.env values would override values in root/.env, so load root/.env first and then env/.env
If we have
.envfile in root of repoAnd this in the env/.env file
Then SOMEVALUE would be set to BAR
If we only have, root/.env:
Then SOMEVALUE would be set to FOO.