On Ubuntu 14.04 I try to establish Drush through Composer.
I added PATH="~/.composer/vendor/bin:$PATH
to either .bashrc
or .bash_profile
on a server.
Drush is invoked properly on the server.
But it does not properly for remotely:
ssh myalias 'drush'
bash: drush: command not found
I checked echo $PATH
for both the webserver and remotely and I saw:
- on the webserver:
/home/<MY_USER>/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
- on the remote call:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Why there is a difference (there is not /home/<MY_USER>/.composer/vendor/bin
)?
How to add the correct path for remotely callbacks?
.bashrc
you added thePATH
assignment? What do you mean with a "callback"? – ilkkachu Mar 13 '17 at 21:07