Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Created November 2, 2013 20:01
Show Gist options
  • Save kristianfreeman/7282881 to your computer and use it in GitHub Desktop.
Save kristianfreeman/7282881 to your computer and use it in GitHub Desktop.
jekyll deploy
HOME=/home/user
GIT_REPO=$HOME/bare_repo
TMP_GIT_CLONE=$HOME/tmp_bare
PUBLIC_WWW=$HOME/site_location
echo "Cloning $GIT_REPO to $TMP_GIT_CLONE"
git clone $GIT_REPO $TMP_GIT_CLONE
echo "Building the jekyll site from $TMP_GIT_CLONE to $PUBLIC_WWW"
jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW
echo "Removing $TMP_GIT_CLONE"
rm -Rf $TMP_GIT_CLONE
echo "Yay! Exiting"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment