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

please support override load #77

Open
Silentdoer opened this issue Jan 22, 2022 · 1 comment
Open

please support override load #77

Silentdoer opened this issue Jan 22, 2022 · 1 comment

Comments

@Silentdoer
Copy link

such as .env have pair:a=1 b=2, and .env.prod have pair: b=3;use dotenv::from_filename(".env"),a is 1,b is 2,then use dotenv::from_filename(".env.prod") again,then a is 1, but b is 3

@LeoniePhiline
Copy link

You will be able to do that with dotenv::from_filename_override(".env.prod") once allan2#47 is merged.

(dotenvy is the maintained fork. dotenv is unmaintained for several years.)

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

No branches or pull requests

2 participants