I would like to use the hook to update my code, run in macos success, centos fail :
public function pull() {
$command = "cd /var/www/laravel && git pull origin master";
$last_line = system($command, $retval);
print_r($last_line);
print_r($retval);
exit();
}
if the $command = "cd /var/www/laravel && pwd"
, all success. very confused.