Last active
December 16, 2015 22:57
Revisions
-
Derek Bourgeois revised this gist
Dec 16, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ if ( $_SERVER[ 'HTTP_X_GITHUB_EVENT' ] == 'push' || $_POST[ 'payload' ] ) { shell_exec( 'cd ' . $path . ' && git reset --hard HEAD && git pull' ); $status = 'Successful'; } ?> -
Derek Bourgeois revised this gist
Dec 16, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,8 @@ $path = '/var/www/repo'; $status = 'Not Successful'; if ( $_SERVER[ 'HTTP_X_GITHUB_EVENT' ] == 'push' || $_POST[ 'payload' ] ) { shell_exec( 'cd ' . $repo . ' && git reset --hard HEAD && git pull' ); $status = 'Successful'; } -
Derek Bourgeois revised this gist
Dec 16, 2015 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,8 +6,6 @@ shell_exec( 'cd ' . $repo . ' && git reset --hard HEAD && git pull' ); $status = 'Successful'; } ?> <!DOCTYPE html> -
Derek Bourgeois revised this gist
Dec 16, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,9 @@ <?php $path = '/var/www/repo'; $status = 'Not Successful'; if ($_SERVER['HTTP_X_GITHUB_EVENT'] == 'push') { shell_exec( 'cd ' . $repo . ' && git reset --hard HEAD && git pull' ); $status = 'Successful'; } -
Derek Bourgeois created this gist
Dec 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ <?php $status = 'Not Successful'; if ($_SERVER['HTTP_X_GITHUB_EVENT'] == 'push') { shell_exec( 'cd /var/www/repo && git reset --hard HEAD && git pull' ); $status = 'Successful'; } return $status; ?> <!DOCTYPE html> <html> <head> <title>Deploy Status: <?php echo $status; ?></title> </head> <body> <br /> <br /> <center> <h1>Deploy Status: <?php echo $status; ?></h1> </center> </body> </html>