Created
November 2, 2013 20:01
-
-
Save kristianfreeman/7282881 to your computer and use it in GitHub Desktop.
jekyll deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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