capistrano-magento2 icon indicating copy to clipboard operation
capistrano-magento2 copied to clipboard

When upgrading PHP version, mainenance:enable runs against old codebase, using new php version

Open edward-simpson opened this issue 1 year ago • 0 comments

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?

edward-simpson avatar Jan 03 '24 08:01 edward-simpson