From 01891c8bacb8157ab76b29528d95cb9b91b29be3 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Tue, 22 Mar 2016 13:03:26 -0400 Subject: [PATCH] Added migration running to post_compile hook --- bin/post_compile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/post_compile b/bin/post_compile index 32177543..8dcb8ba6 100755 --- a/bin/post_compile +++ b/bin/post_compile @@ -39,4 +39,8 @@ ln -s -f ../../vendor/node/bin/npm .heroku/python/bin/npm echo "-----> Compressing static files" python $MANAGE_FILE compress -f 2>&1 | indent +echo "-----> Running django migrations" +python $MANAGE_FILE migrate --list 2>&1 | indent +python $MANAGE_FILE migrate --noinput 2>&1 | indent + echo