2010-09-10 12:37:51 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
if [[ $HOST = "YiMac.local" ]]; then
|
|
|
|
cd $HOME/Sites/webroot
|
|
|
|
git pull
|
2010-09-10 12:39:28 +00:00
|
|
|
./tasks/recompile
|
2010-09-10 12:37:51 +00:00
|
|
|
if git status | grep 'nothing to commit'>/dev/null 2>&1; then
|
|
|
|
git commit -a -m "regeneration"
|
|
|
|
fi
|
|
|
|
git push heroku master
|
|
|
|
else
|
|
|
|
ssh yimac ./Sites/webroot/tasks/hpublish
|
|
|
|
fi
|