-
Notifications
You must be signed in to change notification settings - Fork 149
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
[ENV vars logic] Move env specific var definitions in the parameters.dist.yml #306
base: master
Are you sure you want to change the base?
Conversation
I stand by my sentence :) I instantiate eZ Platform installs many times per day for various testing purposes, so I actually like that only minimum required config is in |
I'm gonna agree with @emodric on this :) |
I am not sure if I follow fully the reasoning of @Plopix - esp. because so far I have never relied on using env vars in SF config. Otoh I can give my own feedback in terms of parameters.dist.yml, and it is: we are now using it for very, very few variables. The rationale is: for developer's laptops, there is no need to press PS: after speaking out my mind, I just re-read the PR, and now it seems that it in fact goes in the opposite direction of what I just said... ;-) |
pps: agree with @alongosz: can add a few more #comments to the existing config files. Fe: config. yml: default_parameters.yml: add a comment stating that this file is where the per-env parameters should be kept, and that the others are in config. yml |
hum sounds I am the only one in favor of my PR But I am still not convinced, let me try again ;-) Few feedbacks first:
That would go for my arguments. If we need a comment to explain where to look we are not in good shape.
well that the way to go now most of the time, with containers or platform.sh
@gggeek no, not really, it does not. Actually if I understood well, just are just saying that your are using another file to store the env/security parameters. (instead of the Why would we use another file? just because of its name
Maybe the misunderstanding is here, there is not By the example:In the current state, if I want to change the Put the value in the ENV only Then we need the default value, of this required parameter. What if this value have to change from developer to others (machine related). There is not You will probably argue that we can add the same line One more argument:
well that is not true today. And then one more question:Why the DB configuration should have a different treatment? |
Hi! IMHO I would agree with @Plopix to be sure to separate what is application related and what is not, this is also how we work in my company. Still, I have another question, why eZ does not use http://symfony.com/doc/current/components/dotenv.html to have default environment variables in a file that is well understood by a lot of cloud providers? |
Makes sense to me 👍 |
there are still a lot of in the
would be great to have that organized in 2.3 ;-) |
I agree with @Plopix on this. We should simplify where it's possible to simplify and also avoid confusion for beginners. |
Ok, @Plopix can you rebase and we can aim to have this in after 2.3 release? |
Actually, we plan to make another RC on Friday, so we could include in 2.3. We will have 1 week till final build. |
That date has passed so this will be in 2.4, and this kind of changes are better done before beta phase starts anyway. You want us to rebase this @Plopix ? |
hey @andrerom. It was a crazy week I did not have the time. I will today (that the beginning of a long sunday;) ). Agreed with 2.4, let's not do that in a rush ;) |
finally I've just done it now @andrerom and somehow those changes are really simple finally ;) and I think they are safe. So if you are up for 2.3 why not :p |
@SylvainGuittard Side, but make sure to prioritize improvements to installer soon (once we do symfony flex imho) as this will increase parameters from 7 to 24 that |
That is the first thing I do on every project.
I don't get why we have
env(VAR):
definitions are mixed in thedefault_parameters.yml
andparameters.dist.yml
- it does not simplify at all.One mentioned reason on Slack was:
To me that is not a good reason, it is kind of "quick and dirty" because:
--no-interaction
Even with the given reasons in Slack, I find hard to justify that the DB configuration is in the
parameters.dist.yml
and the MAILER is indefault_parameters.yml
?That is not logical to me.
Then I propose:
default_parameters.yml
to be the file where we define the parameters thatezplatform
needs to be set up, and those paremeters are getting their values from the ENV.parameters.dist.yml
(where they belong according to me)This PR includes also the
MAILER_PORT
which is also useful.Let me know! ping @lserwatka @andrerom @bdunogier @SylvainGuittard @emodric @gggeek .
Others? any feedback?