Created
July 28, 2009 03:53
-
-
Save ryanbriones/156909 to your computer and use it in GitHub Desktop.
post receive hook to export a working copy and jekyll it
This file contains 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
# "export" the working-copy to a place we can "jekyll" it. | |
# this can probably be done better. | |
git --bare --git-dir=/home/ryanbriones/sites/ryanbriones/source.git archive master | tar xC /home/ryanbriones/sites/ryanbriones/source | |
jekyll /home/ryanbriones/sites/ryanbriones/source /home/ryanbriones/sites/ryanbriones/public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minor correction:
Remove the "/public" from the end of the last line.
Otherwise it creates a copy of your whole site inside the public folder.