If you want run multi repositories with difference PHP versions, you can set PHP path in Deployer for specific version:

config:
  ...
  'bin/php': '/usr/bin/php7.4'
1
2
3

or

set('bin/php', function () {
    return '/usr/bin/php7.4';
});
1
2
3

Refs:

  • https://deployer.org/docs/7.x/recipe/common#binphp

Powered by VuePress
Copyright 2010-2024 Thai Nguyen Hung all rights reserved.