Created
October 19, 2015 13:03
-
-
Save tjarksaul/3ed9b3afdc42f8d6ccaa to your computer and use it in GitHub Desktop.
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
sauli@draco ~/repositories/tjarksaul.git/hooks] < post-receive | |
#!/bin/bash -l | |
. $HOME/.bash_profile | |
GIT_REPO=$HOME/repositories/tjarksaul.git | |
TMP_GIT_CLONE=$HOME/tmp/git/tjarksaul | |
PUBLIC_WWW=/var/www/virtual/$USER/tjarksaul.de | |
git clone $GIT_REPO $TMP_GIT_CLONE | |
jekyll build --source $TMP_GIT_CLONE --destination $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