-
Notifications
You must be signed in to change notification settings - Fork 393
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
proposal: make env file optional #99
Comments
I think an easy workaround would be adding an empty .env in Docker. |
Kinda a shitty solution. |
You can check the error against |
@DeadlySurgeon the thing is, |
@urbanishimwe Sure, but in your example you're specifying with no args not with args, and in reality, in your CI/CD you shouldn't have any |
@DeadlySurgeon you can have secret environments in
|
The method is
|
When you call
Load()
orOverload()
without args it returns an erroropen .env: no such file or directory
. There is a situation where .env file is not necessary like deploying with docker or running tests using CI tools like CircleCI where the environment can be set in other ways.as such, it will be good if .env file is made optional so the app can use the existing os Env or get env through
os.Args
EDITED:
check this comment for more #99 (comment)
The text was updated successfully, but these errors were encountered: