scratch/tasks/hpublish
Yann Esposito (Yogsototh) 7a7f2de180 Fixed a bug on hpublish
2010-09-10 16:52:21 +02:00

14 lines
323 B
Bash
Executable file

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