Skip to content

Instantly share code, notes, and snippets.

@m3nt0r
Created April 27, 2013 22:19
Show Gist options
  • Save m3nt0r/5474976 to your computer and use it in GitHub Desktop.
Save m3nt0r/5474976 to your computer and use it in GitHub Desktop.
jekyll clone post-receive build (working)
GIT_REPO=$HOME/myrepo.git
TMP_GIT_CLONE=$HOME/tmp/myrepo
PUBLIC_WWW=/var/www/myrepo
git clone $GIT_REPO $TMP_GIT_CLONE
cd $TMP_GIT_CLONE
jekyll --no-auto $TMP_GIT_CLONE $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