-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Support multiple .env files? #4
Comments
Yeah I certainly would be open to that. Maybe have it support merging too in the style of |
I think if we go this route we will need to do some sort of flag style then so we know exactly when the user has stopped adding env files and we can retain the default behavior (no flags) that is very simplistic and I like that. So maybe something like this for multiple files: Then for the merging aspect, the file to the right will always override the file to the left, meaning that the files will be applied to process.env in order from left -> right. |
I've changed my mind on this. Most tools I've come across expect (even advocate) single env file. Docker by default not only recognizes a single For this reason I've chosen to go with single .env file, and if need be combine several beforehand. Also I realized I could just chain
Thanks for taking interest in this. Really appreciate it. |
Thoughts on supporting multiple
.env
files?The text was updated successfully, but these errors were encountered: