]> git.parisson.com Git - telemeta.git/commitdiff
collecstatic only in production
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 17 Sep 2017 19:58:02 +0000 (21:58 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 17 Sep 2017 19:58:02 +0000 (21:58 +0200)
app/scripts/app.sh

index 21d6daaf6db016f50b912e4715ba8b42ed575733..a1775b6e8f2b523d8097ddc87a2a521d3e5f4c07 100644 (file)
@@ -28,7 +28,6 @@ python $manage wait-for-db
 python $manage syncdb --noinput
 python $manage migrate --noinput
 python $manage bower_install -- --allow-root
-python $manage collectstatic --noinput
 
 # telemeta setup
 python $manage telemeta-create-admin-user
@@ -49,8 +48,10 @@ if [ "$1" = "--runserver" ]; then
     python $manage runserver 0.0.0.0:8000
 else
     # static files auto update
-    watchmedo shell-command --patterns="$patterns" --recursive \
-        --command='python '$manage' collectstatic --noinput' $src &
+    # watchmedo shell-command --patterns="$patterns" --recursive \
+    #     --command='python '$manage' collectstatic --noinput' $src &
+
+    python $manage collectstatic --noinput
 
     # app start
     uwsgi --socket :$port --wsgi-file $wsgi --chdir $app --master \