Git WebHook will not pull (PHP)

前端 未结 4 937
[愿得一人]
[愿得一人] 2021-01-16 03:35

I have a PHP file, hook.php, that looks like this:

The file is located in /var/www/ol

4条回答
  •  既然无缘
    2021-01-16 04:28

    create webhook.php in the root or anywhere from where you can access it

    $result = exec("cd /path/to/repo && git pull origin branch");

    make sure the permission is 775 and user of your file and your site directory is www-data owner

提交回复
热议问题