From a35ad903e180e8dbb78f5ad175a1853ea7f4e031 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 16 Jan 2016 14:39:54 +0000 Subject: [PATCH] Run migrations if production build --- build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build b/build index 07ebafc..cc07900 100755 --- a/build +++ b/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