Pure php deployment script that can pull from Github.
Adding a webhook in your GitHub repository, will make GitHub send a the details of each push (or commit for the changes happening directly in the Web interface or through the GitHub API) to your server.
This script will read the details of the commit and
The deployment path can be tweaked by defining both a repository and a deployment basedir.
use a config file to replace the few variables.
$config = array (
'my_repo' => // name as user/repository
'secret' => 'secret string', // hashed!
'branch' => 'master', // only commits to this branch will be retained
'repository_base_path' => '', // path to be removed from the filename
'deployment_base_path' => '', // path to be prefixed to the filename
'log_file' => 'log.txt', // list of the commits
'ignore' => array
),
);