]> git.parisson.com Git - mezzo.git/commitdiff
collectstatic only in prod
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 7 Aug 2016 09:50:39 +0000 (11:50 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 7 Aug 2016 09:50:39 +0000 (11:50 +0200)
app/scripts/app.sh

index 4e48b535b6e7f36eac0a3e27dab648b1b13be9ab..5cebbcf92cf6f4f4f38ce67c25a0687fe1e34b7f 100644 (file)
@@ -30,7 +30,6 @@ sh $app/scripts/wait.sh
 python $manage wait-for-db
 python $manage migrate --noinput
 # python $manage bower_install -- --allow-root
-python $manage collectstatic --noinput
 python $manage create-admin-user
 
 # app start
@@ -42,6 +41,8 @@ else
     # watchmedo shell-command --patterns="$patterns" --recursive \
     #     --command='python '$manage' collectstatic --noinput' $app &
 
+    python $manage collectstatic --noinput
+    
     uwsgi --socket :$port --wsgi-file $wsgi --chdir $app --master \
     --processes $processes --threads $threads \
     --uid $uid --gid $gid \