I am trying to setup github to websever deployment automation. I've got everything working except the most important bit. I have a file @ mydomain.com/github.php that looks like this:
<?php
`git pull`;
?>
and this is the post-receive URL for my github repo. Github is posting to it successfuly, but the shell command is not running. When I try SSHing into my server, and running the script directly:
php github.php
it works just fine and changed files are pulled succesfully
From git://github.com/user/Repo
7e3176d..f889c14 master -> origin/master
but when accessing the page in my browser or when github POSTs to it - the shell command is not executed. There is no error - just an empty result. What am I doing wrong here?
git pull?>