From: Emilie Date: Fri, 15 Dec 2017 11:32:47 +0000 (+0100) Subject: [updage] : migrate as option X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8c67c022d9e267ef7c92ac9feebf672dedf53852;p=docker-django-scripts.git [updage] : migrate as option --- diff --git a/upgrade.sh b/upgrade.sh index ffbf134..6cc0203 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -7,7 +7,10 @@ git pull ./bin/update_submodules.sh # Apply migrations -docker-compose run app python /srv/app/manage.py migrate +if [ "$1" = "--migrate" ]; + then + docker-compose run app python /srv/app/manage.py migrate +fi # Build front-end ./bin/build_front.sh