X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=devel%2Fserver-loop.sh;h=c77258fc183a2e8f98ce5a1099845d73fa631ab7;hb=1ea923e25ae8c2a0764eb41ffa5080edcea5d959;hp=1eacb71a362f2077178455647d0ac62b4bb92cf2;hpb=0426cdd4479234df3498deb8675511cd26e866c2;p=unfold.git diff --git a/devel/server-loop.sh b/devel/server-loop.sh index 1eacb71a..c77258fc 100755 --- a/devel/server-loop.sh +++ b/devel/server-loop.sh @@ -3,10 +3,14 @@ DIRNAME=$(dirname $0) cd $DIRNAME/.. # default port : if hostname starts with z -> use 8080 ; otherwise take 80 +#hostname | grep -q '^z' && port=8080 || port=8080 hostname | grep -q '^z' && port=8080 || port=80 [[ -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