Skip to content

Instantly share code, notes, and snippets.

@kaimallea
Forked from cowboy/github_post_recieve.php
Last active December 15, 2015 04:29
Show Gist options
  • Save kaimallea/5202291 to your computer and use it in GitHub Desktop.
Save kaimallea/5202291 to your computer and use it in GitHub Desktop.
<?php
// Use in the "Post-Receive URLs" section of your GitHub repo.
if ( $_POST['payload'] ) {
shell_exec( '/home/ubuntu/updatesite' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment