56e7766a by Jeff Balicki

done

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