Skip to content

Instantly share code, notes, and snippets.

@ryanbriones
Created July 28, 2009 03:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanbriones/156909 to your computer and use it in GitHub Desktop.
Save ryanbriones/156909 to your computer and use it in GitHub Desktop.
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
@picklepumpers
Copy link

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