Merge branch 'master' of ssh://git.onelab.eu/git/myslice
[myslice.git] / devel / server-loop.sh
index 1eacb71..06a56ee 100755 (executable)
@@ -7,6 +7,8 @@ hostname | grep -q '^z' && port=8080 || port=80
 [[ -n "$@" ]] && port=$1
 
 while true; do 
-    make all-static all-templates
+    ./manage.py collectstatic --noinput
+    make all-templates
     ./manage.py runserver 0.0.0.0:$port
+       sleep 1
 done