scratch/tasks/hpublish
Yann Esposito (Yogsototh) 4f25203b6a better hpublish
2010-10-07 00:47:37 +02:00

17 lines
400 B
Bash
Executable file

#!/usr/bin/env zsh
if [[ $HOST = "YiMac.local" ]]; then
cd $HOME/Sites/webroot
git co master
[[ ! $? ]] && { exit 1 }
git pull
[[ ! $? ]] && { 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