Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Allow sites to specify PHP version #105

Closed
brandonkelly opened this issue May 6, 2020 · 3 comments
Closed

Allow sites to specify PHP version #105

brandonkelly opened this issue May 6, 2020 · 3 comments
Labels
enhancement Not really required but improves quality of life feature request New feature or request
Milestone

Comments

@brandonkelly
Copy link
Member

Each site should be able to specify their own PHP version via a php property under sites in the config, and Nitro should auto-install the required versions if they don’t exist.

sites:
 - hostname: example.test
   webroot: /nitro/sites/example.test/web
   php: "7.2"
@brandonkelly brandonkelly added the feature request New feature or request label May 6, 2020
@lukeholder
Copy link
Member

Just an idea if this goes ahead, the machine should probably have a setting for the default CLI PHP version. or ability to change the CLI PHP version in use which ssh'd into the machine.

@jasonmccallister jasonmccallister added this to the next milestone Aug 12, 2020
@jasonmccallister jasonmccallister added the enhancement Not really required but improves quality of life label Aug 13, 2020
@jasonmccallister
Copy link
Member

Sites are now PHP version specific as well as enabling xdebug per site. Please see the documentation here for upgrading instructions https://craftcms.com/docs/nitro/2.x

@bencroker
Copy link
Contributor

Jason you champ, thanks for making Nitro 2 so so good!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Not really required but improves quality of life feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants