56e7766a by Jeff Balicki

done

1 parent ba6838d5
......@@ -9,7 +9,7 @@ $BRANCH = "deploy";
if ( $_POST['payload'] ) {
// Only respond to POST requests from Github
echo 'paload';
if( file_exists($LOCAL_REPO) ) {
// If there is already a repo, just run a git pull to grab the latest changes
......@@ -17,12 +17,12 @@ if ( $_POST['payload'] ) {
die("done " . mktime());
} else {
// If the repo does not exist, then clone it into the parent directory
shell_exec("cd {$LOCAL_ROOT} && git clone {$REMOTE_REPO}");
die("done " . mktime());
}
}
?>
......