Fix deploy script

This commit is contained in:
Tomas Gavenciak 2015-09-14 23:02:43 +02:00
parent af3451ba9a
commit 1551224f08

View file

@ -76,7 +76,7 @@ deploy_test:
deploy_prod: deploy_prod:
@if [[ `pwd` != "/akce/MaM/WWW/mamweb-prod" ]]; then echo "Only possible in /akce/MaM/WWW/mamweb-prod"; exit 1; fi @if [[ `pwd` != "/akce/MaM/WWW/mamweb-prod" ]]; then echo "Only possible in /akce/MaM/WWW/mamweb-prod"; exit 1; fi
@echo "Backing up production DB ..." @echo "Backing up production DB ..."
cd .. && ./backup_prod_db.sh ( cd .. && ./backup_prod_db.sh )
@echo "Installing version from origin/stable ..." @echo "Installing version from origin/stable ..."
git pull origin stable git pull origin stable
git clean -f git clean -f