test
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -9,12 +9,12 @@ $BRANCH = "deploy"; | ... | @@ -9,12 +9,12 @@ $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 | echo 'paload'; | 12 | echo 'payload'; |
| 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 |
| 16 | shell_exec("cd {$LOCAL_REPO} && git pull"); | 16 | shell_exec("cd {$LOCAL_REPO} && git pull"); |
| 17 | 17 | echo 'done'; | |
| 18 | die("done " . mktime()); | 18 | die("done " . mktime()); |
| 19 | } else { | 19 | } else { |
| 20 | 20 | ... | ... |
-
Please register or sign in to post a comment