scratch/tasks/hpublish
Yann Esposito (Yogsototh) 2c65d4f7e0 regeneration
2010-10-14 15:29:16 +02:00

19 lines
476 B
Bash
Executable file

#!/usr/bin/env zsh
if [[ $HOST = "YiMac.local" ]]; then
cd $HOME/Sites/webroot
git co master
(( $? == 0 )) || { exit 1 }
git pull
(( $? == 0 )) || { exit 1 }
# empty regen depencies cache because of a bug
\rm -f ./tmp/*
./tasks/recompile
if git status | grep 'nothing to commit'>/dev/null 2>&1; then
else
git commit -a -m "regeneration"
fi
git push heroku master
else
ssh yimac ./Sites/webroot/tasks/hpublish
fi