Run migrations if production build
This commit is contained in:
parent
818cb9a633
commit
a35ad903e1
1 changed files with 6 additions and 0 deletions
6
build
6
build
|
@ -11,3 +11,9 @@ npm install
|
|||
npm run build
|
||||
|
||||
env/bin/python manage.py collectstatic --noinput
|
||||
|
||||
if [[ $@ == prod ]]
|
||||
then
|
||||
echo ">> Running Migrations..."
|
||||
env/bin/python manage.py migrate
|
||||
fi
|
||||
|
|
Reference in a new issue