php實現webhook自動部署代碼

簡單利用coding結合git實現webhook   1.創建webhook.php    確保服務器上能以ssh方式進行git pull操作 確保shell_exec能執行,在php.ini中 disable_functions 中去掉 shell_exec <?php $pwd = getcwd(); $command = 'cd ' . $pwd . ' && git pull'; $ou
相關文章
相關標籤/搜索