]> git.parisson.com Git - telemeta.git/commitdiff
Collect static only at init
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 12 Mar 2018 11:08:41 +0000 (12:08 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 12 Mar 2018 11:08:41 +0000 (12:08 +0100)
app/scripts/app.sh

index 916f2e1ed4d8074274007a51419b4935d27e5c52..192e1c5d410f613e1484d2aae2a057ca49371a61 100644 (file)
@@ -31,6 +31,7 @@ if [ ! -f .init ]; then
     python $manage syncdb --noinput
     python $manage migrate --noinput
     python $manage bower_install -- --allow-root
+    python $manage collectstatic --noinput
     touch .init
 fi
 
@@ -54,8 +55,6 @@ else
     # watchmedo shell-command --patterns="$patterns" --recursive \
     #     --command='python '$manage' collectstatic --noinput' $src &
 
-    python $manage collectstatic --noinput
-
     # fix media access rights
     find $media -maxdepth 1 -path ${media}import -prune -o -type d -not -user www-data -exec chown www-data:www-data {} \;