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
Load environment variables from file #405
base: master
Are you sure you want to change the base?
Conversation
Does it also work when I would suggest setting the default to Another problem I see that this does not support multipe files, so it would not be useable as-is to me, as I use setups with at least two files, like this. |
I think using |
The implementation doesn't break existing setups, if the The environment file is loaded when running Multiple environment files are indeed not supported, I could extend this to accept a list of files instead of a single file. |
Any updates on this? |
Solution is to use |
This pull request adds a new key
env_file
to the configuration, the key specifies a file from which the environment variables for runningbin
should be sourced.If
env_file
is set, the environment file is sourced every time thebin
is run, so that it works as expected when "env" is ininclude_ext
and the env file is updated.The new feature was suggested in #47 and removes the need for less elegant solutions like the one suggested in #58.