scratch/tasks/hpublish

18 lines
406 B
Text
Raw Normal View History

#!/usr/bin/env zsh
if [[ $HOST = "YiMac.local" ]]; then
cd $HOME/Sites/webroot
2010-10-06 22:47:37 +00:00
git co master
2010-10-10 19:26:38 +00:00
(( $? == 0 )) || { exit 1 }
2010-10-06 22:47:37 +00:00
git pull
2010-10-10 19:26:38 +00:00
(( $? == 0 )) || { exit 1 }
./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