1 shell_exec(‘ls‘)
$request = json_decode(file_get_contents(‘php://input‘), true)
echo shell_exec(‘cd your_path && git pull‘)
sudo chown -R :www-data your_path sudo chmod -R g+w your_path
Git----使用WebHook实现代码自动部署
原文:https://www.cnblogs.com/leedom/p/9510973.html