I try to organize the deployment from the repository with the subsequent rolling, but any commands related do not cure anything, only git pull works.
In theory, exec() returns everything that was output as a result of the command.
I test the command directly from the terminal - the log is written, the command is executed. Trying to execute the command with the help of a hook - returns nothing .
What could be wrong? Maybe you need to do something from the server?
Test hook code:
exec("cd /home/user/.local/bin/node-v0.12.7-linux-x64/bin/ && npm -v", $output); foreach($output as $value) { echo $value . '; '; } Accordingly, instead of the npm version, I get nothing in the body.
pullis performed, the rest is omitted. As I understand it - the problem is still in the rights? - lamartire