capistrano-magento2
capistrano-magento2 copied to clipboard
When upgrading PHP version, mainenance:enable runs against old codebase, using new php version
I'm working on an upgrade branch, which upgrades the magento version, and the php version.
Because of this, the deployed version of the site is 2.4.3, and php7.4, but the version I'm deploying is 2.4.6, and building using php8.1.
This means that when cap tries to put the site into maintenance, it's using php8.1 against M2.4.3, which is incompatible, so the deploy is failing
Is there a way of specifying a specific php path for a specific command?