1
Fork 0

Run migrations if production build

This commit is contained in:
Jake Howard 2016-01-16 14:39:54 +00:00
parent 818cb9a633
commit a35ad903e1

6
build
View file

@ -11,3 +11,9 @@ npm install
npm run build npm run build
env/bin/python manage.py collectstatic --noinput env/bin/python manage.py collectstatic --noinput
if [[ $@ == prod ]]
then
echo ">> Running Migrations..."
env/bin/python manage.py migrate
fi