Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created April 23, 2013 17:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiew/5445651 to your computer and use it in GitHub Desktop.
Save jamiew/5445651 to your computer and use it in GitHub Desktop.
GitHub webhook -> php script to update local git checkout Simplest possible continuous deployment for the http://gold.fffff.at static HTML website
<html>
<body>
<pre>
Running...
<?php
$out = `cd /home/fffffat/gold.fffff.at && git fetch origin && git reset --hard origin/master`;
print $out;
print "\n";
print "Done";
?>
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment