Upraven "deploy_prod" v Makefile, aby v něm fungovalo "cd .." odkudkoliv.
This commit is contained in:
parent
5de321788c
commit
b3221eab65
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -82,7 +82,7 @@ deploy_prod:
|
||||||
@if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi
|
@if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi
|
||||||
@if [ `readlink -f .` != "/aux/akce/mam/www/mamweb-prod" ]; then echo "Only possible in directory mamweb-prod"; exit 1; fi
|
@if [ `readlink -f .` != "/aux/akce/mam/www/mamweb-prod" ]; then echo "Only possible in directory mamweb-prod"; exit 1; fi
|
||||||
@echo "Backing up production DB ..."
|
@echo "Backing up production DB ..."
|
||||||
( cd .. && ./backup_prod_db.sh )
|
( cd -P .. && ./backup_prod_db.sh )
|
||||||
@echo "Installing version from origin/master ..."
|
@echo "Installing version from origin/master ..."
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git clean -f
|
git clean -f
|
||||||
|
|
Loading…
Reference in a new issue