scratch/tasks/hpublish
Yann Esposito (Yogsototh) 07fd03c13b regeneration
2012-01-02 21:49:11 +01:00

20 lines
500 B
Bash
Executable file

#!/usr/bin/env zsh
if [[ $HOST = "iMac-de-Yann.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 add .
git commit -m "regeneration"
fi
git push heroku master
else
ssh yimac ./Sites/webroot/tasks/hpublish
fi