new style, first version (header, login, dashboard)
[myslice.git] / devel / server-loop.sh
index 1eacb71..1d94e8e 100755 (executable)
@@ -3,10 +3,13 @@ DIRNAME=$(dirname $0)
 cd $DIRNAME/..
 
 # default port : if hostname starts with z -> use 8080 ; otherwise take 80
-hostname | grep -q '^z' && port=8080 || port=80
+hostname | grep -q '^z' && port=8080 || port=8080
 [[ -n "$@" ]] && port=$1
 
 while true; do 
-    make all-static all-templates
+    # we use make for convenience
+    # but what the static target really does is to invoke manage.py collectstatic 
+    make static templates
     ./manage.py runserver 0.0.0.0:$port
+       sleep 1
 done