Instantly share code, notes, and snippets.

What would you like to do?
post receive hook to export a working copy and jekyll it
# "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

This comment has been minimized.

picklepumpers commented Aug 28, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment