]> git.parisson.com Git - mezzo.git/commitdiff
[app] add migrate at boot
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 4 Nov 2020 14:31:33 +0000 (15:31 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 4 Nov 2020 14:31:33 +0000 (15:31 +0100)
app/bin/app.sh

index bde9920aaeb108386b6c25d87d75184b0bae8b83..630a5f0649f7a2ea0e2bda2f7403cccef46c8cb6 100755 (executable)
@@ -41,6 +41,8 @@ if [ ! -f .init ]; then
     touch .init
 fi
 
+python $manage migrate --noinput
+
 # app start
 if [ "$1" = "--runserver" ]; then
     python $manage runserver 0.0.0.0:8000