Makefile: možnost deploy_test deploynout i jinou branch.
This commit is contained in:
parent
d4317ae9f2
commit
ba5ceb14ba
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -2,6 +2,7 @@
|
|||
PYTHON=python2.7
|
||||
VE_VER=16.0.0
|
||||
LOCAL_PYTHON=bin/python
|
||||
TEST_BRANCH?=test
|
||||
|
||||
all: install
|
||||
|
||||
|
@ -66,7 +67,7 @@ deploy_test:
|
|||
@if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi
|
||||
@if [ `pwd` != "/akce/mam/www/mamweb-test" ]; then echo "Only possible in /akce/mam/www/mamweb-test"; exit 1; fi
|
||||
@echo "Installing version from origin/test ..."
|
||||
git pull origin test
|
||||
git pull origin $(TEST_BRANCH)
|
||||
git clean -f
|
||||
make install
|
||||
./manage.py migrate
|
||||
|
|
Loading…
Reference in a new issue