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

add a new option overwrite #331

Closed
wants to merge 2 commits into from
Closed

add a new option overwrite #331

wants to merge 2 commits into from

Conversation

JounQin
Copy link

@JounQin JounQin commented Aug 20, 2018

Enable to reload environment variables for nodemon, etc.

    Enable to reload environment variables for nodemon, etc.
@maxbeatty
Copy link
Contributor

this introduces some potentially dangerous behavior (which has been discussed ad nauseam in other issues). if nodemon spawns a new process and your code in the process calls dotenv, you should realize changed variables

@maxbeatty maxbeatty closed this Oct 2, 2018
@JounQin
Copy link
Author

JounQin commented Oct 2, 2018

@maxbeatty But actually it can't be changed automatically with nodemon. Then I can only overwrite the environments with dotenv API, of course I can do it, but hope it could be better.

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

Successfully merging this pull request may close these issues.

2 participants