Created
April 23, 2013 17:28
-
-
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
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 characters
<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