Skip to content

Instantly share code, notes, and snippets.

@tjarksaul
Created October 19, 2015 13:03
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 tjarksaul/3ed9b3afdc42f8d6ccaa to your computer and use it in GitHub Desktop.
Save tjarksaul/3ed9b3afdc42f8d6ccaa to your computer and use it in GitHub Desktop.
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