Skip to content

Instantly share code, notes, and snippets.

@tigefa4u
Last active February 3, 2016 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigefa4u/9c3e3c03fdaaf5eae49f to your computer and use it in GitHub Desktop.
Save tigefa4u/9c3e3c03fdaaf5eae49f to your computer and use it in GitHub Desktop.
Gitolite hooks/post-receive for jekyll
GIT_REPO=$HOME/repositories/nulldo.git
TMP_GIT_CLONE=$HOME/tmp/nulldo
PUBLIC_WWW=/var/www/html
git clone $GIT_REPO $TMP_GIT_CLONE
jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment