-
Notifications
You must be signed in to change notification settings - Fork 431
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
Feature proposal: .env.local and .env.[environment][.local] #257
Comments
@mandrewcito But don't you think this would over complicate things ? I mean first of all w.r.t convention only should we keep it It would be good if we ask other contributors and devs to vote on this. |
If you have default values for all environments, why not hard-code them in the application itself and override them with a different I've seen similar feature requests in the past, regarding multiple scenarios. Please have a look at #73 for a previous discussion. Does it look like it could solve your issue? |
Yes, in fact on my current apps im doing that way. Question was only for porouse a new the a feature similar to vue environment variables behaviour (https://cli.vuejs.org/guide/mode-and-env.html#modes). If you consider it an unnecesary feature to you lib its ok :D |
Hi,
Is there a way to deal with local configurations or environment dependent configurations?.
I will explain my idea:
On the process of developing an app, You would have a .env file stored on the version control with a default options (a template with default values). But when you are on the development process you need a .env.local. Why? becouse you need to store your DB conection string and other config values related with your local environment. Next, on your publishing/test/stage scenario your connection strings will change so you will need a different environment file:
IMO the load secuence of the .env will be the follwing:
On development scenario:
On the other scenarios:
Is there a way to configure this behaivour on the library ? if is not do you have plans to add this behaiour? I ask this because i can add this functionality to the library and make a PR if you consider it useful.
The text was updated successfully, but these errors were encountered: