This gist shows how to setup a simple build server with Apache.
GitHub sends a push request to the server each time the repository is updated.
Apache handles this request and runs a python script in response, which pulls from the repository and creates a new build.
This assumes the Apache user is called "www-data" with a home directory of /var/www/ and that project files live in /var/www/PROJECT