Skip to content
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

Allow -r dotenv-flow/config #11

Closed
krzkaczor opened this issue Apr 9, 2019 · 3 comments
Closed

Allow -r dotenv-flow/config #11

krzkaczor opened this issue Apr 9, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@krzkaczor
Copy link

I prefer do leave .env loading totally up to the user of the app so I don't have anywhere in my code require('dotenv').config(); but rather I use node -r dotenv/config app.js And if it runs in docker then docker takes care of injecting it and I dont have to change anything in my app code.

Unfortunatelly this doesn't work with this lib :(

@kerimdzhanov kerimdzhanov added the enhancement New feature or request label Apr 9, 2019
@kerimdzhanov
Copy link
Owner

kerimdzhanov commented Apr 9, 2019

Hi @krzkaczor,
I understand what you mean and I will try to find time to implement this feature.
Or, I would be very glad if someone send me a PR ;)

@jlandrum
Copy link
Contributor

Created a pull request with basic support.
#12

kerimdzhanov added a commit that referenced this issue Apr 21, 2019
kerimdzhanov added a commit that referenced this issue Apr 21, 2019
@kerimdzhanov
Copy link
Owner

First of all, thank you guys for your support in developing of this library!

I've just published a new release candidate (v0.4.0.-rc.1) with this feature support adding the ability to configure -r dotenv-flow/config via environment variables and/or command line switches.

You can now install it and give a try.

Please, let me know if something goes wrong. Otherwise I will release v0.4.0 in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants