-
Notifications
You must be signed in to change notification settings - Fork 847
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
Internal utility to set the PHP version of VVV #2309
Comments
It will need to:
The last item can be spun off into a new ticket |
Reading now the ticket seems that we need as always that in VVV define a PHP default version in case the one in the config is not available. |
So as today we have VVV/provision/core/php/provision.sh Line 5 in 4a22238
7.4 we can think to a new config:
So the code as wrote #2309 (comment) require some check. Instead how this change can affect utilities (apart the php version running as default for the webserver for them):
So a solution is to enforce the VVV's php default version as minimum for web server and also for cli.
In this way we can have both the solution or another solution that add a lot of entropy is to define a php version for provisioner used for cli/nginx. |
I'm heavily opposed to setting a default version, there are other solutions to that problem that are superior. I've explained elsewhere that this will cause lots of problems, while never actually solving the problems that people are using this to solve. This is an X Y problem, this is not the solution to the problem, this is the solution to implementing a proposed solution that does not actually solve the real problem. The real solution is to allow a site to specify the PHP version, not the nginx upstream, then set that version in the provisioner: sites:
wordpress-one:
repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
php: 8.0
hosts:
- one.wordpress.test Now when IMO this should be closed in favor of #2367 |
The idea behind this is to avoid issues when we change the internal default php version.
AS we need to change various files and version in a lot of files, something that does this for us automatically can save a lot of time.
The text was updated successfully, but these errors were encountered: