You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the deploy capistrano try to download composer with "php" but it should use "php7cli".
I've added these lines in my deploy.rb: SSHKit.config.command_map[:php] = "php7cli" SSHKit.config.command_map[:composer] = "php7cli #{shared_path.join("composer.phar")}"
php7cli is and alias in my .bashrc. I've tried it with an complete path but still it doesnt work.
I've also tried this in my production.rb: etch(:default_env).merge!(PATH: '$PATH:usr/local/bin/php7-70STABLE-CLI')
Still... No luck for me
The text was updated successfully, but these errors were encountered:
It's exceeding unlikely that Capistrano would run PHP via an bash-alias. Maybe putting the full path to the php7cli command, such as /usr/local/bin/php7-70STABLE-CLI/php7cli for the :php variable would work, or else creating a symlink from php7cli to /usr/local/bin/php (or similar), would allow it to be run from a standard path and filename. There may also be some form of OS-level symlink alias available (under an 'alternative' system, or the like)
@msgeburt this is related to what is described in #46. Only the first argument of execute is resolved with command_map, so setting an alternative for php in command_map won't have any effect.
@fuegas sry im not in touch with this problem anymore. i had a bad work around but actually im not sure how i did it. But i didnt shared the workaround because i wouldnt recommend it to anyone^^
During the deploy capistrano try to download composer with "php" but it should use "php7cli".
I've added these lines in my deploy.rb:
SSHKit.config.command_map[:php] = "php7cli" SSHKit.config.command_map[:composer] = "php7cli #{shared_path.join("composer.phar")}"
php7cli is and alias in my .bashrc. I've tried it with an complete path but still it doesnt work.
I've also tried this in my production.rb:
etch(:default_env).merge!(PATH: '$PATH:usr/local/bin/php7-70STABLE-CLI')
Still... No luck for me
The text was updated successfully, but these errors were encountered: