I was playing around with this project and ran into some errors on build machines with multiple versions of php installed.
TL;DR: {{magento_bin}} ignores deployers {{bin/php}} setting and executes the wrong php binary
The {{magento_bin}} command just executes the /bin/magneot command, which in turn uses the env command in the shebang to determine which php executable to use
(#!/usr/bin/env php)
In deployer it is possible to set another php executable with set('bin/php', ...) like this:
set('bin/php', function () {
return locateBinaryPath('php7.1');
});
The easiest fix would be to use "{{bin/php}}" to execute bin/magento.
To do this, in file recipe/magento_2_1.php change Line 27:
Hi,
I was playing around with this project and ran into some errors on build machines with multiple versions of php installed.
TL;DR: {{magento_bin}} ignores deployers {{bin/php}} setting and executes the wrong php binary
The {{magento_bin}} command just executes the/bin/magneot command, which in turn uses the env command in the shebang to determine which php executable to use
(#!/usr/bin/env php)
In deployer it is possible to set another php executable with set('bin/php', ...) like this:
The easiest fix would be to use "{{bin/php}}" to execute bin/magento.
To do this, in file recipe/magento_2_1.php change Line 27:
From:
To: