ddollar / forego

Foreman in Go
1.43k stars 175 forks source link

Should env defined variables override .env? #85

Closed nvartolomei closed 8 years ago

nvartolomei commented 8 years ago

This is what I expected actually.

ddollar commented 8 years ago

I think this could easily lead to unexpected scenarios. Could you provide an example of this please?

tomeon commented 7 years ago

Although this issue is closed, it's perhaps worth mentioning that what the OP expects is dotenv's default behavior, justified on the assumption that

the deployment environment has more knowledge about configuration than the application does.

Maybe this behavior could be optional -- say, via a flag like --preserve-env? I would be happy to submit a PR adding this feature.