Created
July 26, 2014 15:30
-
-
Save jhbruhn/a1a66d505324d635170a to your computer and use it in GitHub Desktop.
Pedas PostReceive
This file contains 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
#!/bin/bash -l | |
GIT_REPO=$HOME/website.git | |
TMP_GIT_CLONE=$HOME/tmp/git/website | |
PUBLIC_WWW=/var/www/virtual/$USER/html | |
DIR=`pwd` | |
unset GIT_DIR | |
#rm -rf $TMP_GIT_CLONE | |
. $HOME/.bash_profile | |
git clone $GIT_REPO $TMP_GIT_CLONE | |
cd $TMP_GIT_CLONE | |
git status | |
git pull | |
bower install | |
npm install | |
grunt build | |
rsync -av --delete $TMP_GIT_CLONE/dist/ $PUBLIC_WWW | |
cd $DIR | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment