-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·29 lines (25 loc) · 1.23 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
if [ $PULL_REQUEST != 'false' ]; then exit 0; fi
if [ $BRANCH = 'develop' ]; then
heroku maintenance:on --app tinville-testing
git push -f [email protected]:tinville-testing.git develop:master
heroku run ./initDataNoInput qatest --app tinville-testing
heroku run ./qatest collectstatic --noinput --app tinville-testing
heroku run ./qatest compress --force --app tinville-testing
heroku maintenance:off --app tinville-testing
# heroku maintenance:on --app tinville-dev
# git push -f [email protected]:tinville-dev.git develop:master
# heroku run ./initDataNoInput dev --app tinville-dev
# heroku run ./dev collectstatic --noinput --app tinville-dev
# heroku run ./dev compress --force --app tinville-dev
# heroku maintenance:off --app tinville-dev
else
if [ $BRANCH = 'master' ]; then
heroku maintenance:on --app tinville-beta
git push -f [email protected]:tinville-beta.git master:master
heroku run ./initDataNoInput beta --app tinville-beta
heroku run python manage.py collectstatic --settings=Tinville.settings.beta --noinput --app tinville-beta
heroku run python manage.py compress --settings=Tinville.settings.beta --force --app tinville-beta
heroku maintenance:off --app tinville-beta
fi
fi