github作webhooks:[2]PHP实现钩子代码

在github的setting里面的webhooks里把咱们的url地址填进去。 钩子更新的代码以下: <?php error_reporting(E_ALL); $gitPost = json_decode(file_get_contents("php://input")); $dir = '/home/www/ownShop';//该目录为git检出目录 $comm = "cd $dir &
相关文章
相关标签/搜索