I have a private github repo set up. I also have git installed and a clone of this repo at subdomain.example.com.
In the root of the subdomain I have a php file that has the following code:
<?php `git pull`;
I have set up a web hook to http://subdomain.example.com/git-pull.php.
However when ever I push a new commit nothing happens on my server. I have followed about 10 different tutorials. Most of which seem to assume you know what you are doing.
This would be the first time I am ever working with GitHub so I really have no clue what I am doing or how to properly accomplish this.
I guess my first question would be how can I even tell if my website is seeing the webhook when ever the repo is updated?