I'm trying to retrieve the PHP version on the remote server with fabric, but when I execute my command in fabric it returns me : /bin/bash: php: command not found.
When I connect via ssh on the server then try php -v
it returns me the php version. but when I try ssh user@host 'php -v'
I have the same error than fabric ( /bin/bash: php: command not found)
I think my problem comes from the environment variable right? Is there a way to load the proper env variable so my command doesn't fail in fabric?