-
-
Notifications
You must be signed in to change notification settings - Fork 37
Support multiple .env
files
#136
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
Comments
Sounds fair enough @AlexSkrypnyk What would your expected behaviour be for variables declared in multiple files, that a variable in a later file (further down the list) takes precedence and overwrites the same variable in the earlier file? E.g. ahoyapi: v2
env:
- .env
- .env.local
VAR=foo
VAR=bar Ends up with |
yes, the later value wins |
@AlexSkrypnyk I've had a go implementing this, would you be able to review? A few notes:
env:
- .env even if there is only one env file.
|
@jackwrfuller I understand why you've kept the behaviour for nonexistent Are you able to alter the MR to switch to this behaviour? |
I think we should avoid such overcomplicated approach and just skip without an error. |
126 has added support for reading
.env
files.I would like Ahoy to support loading from multiple
.env
files:Similar approach exists in Docker Compose.
If a file does not exists - it should be skipped and no error would be triggered.
The text was updated successfully, but these errors were encountered: