X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=devel%2Fserver-loop.sh;h=1d94e8ee538f46b79be9161c1a8497c49911ee2c;hb=ccbd6e9fc2ff9e6683e38d13220ffc9dccfb20ea;hp=a108f93d797fc8f4d83bf1bcc6b8b45972d2011c;hpb=a3926fc96d8e29d27ab4f85f2f6210c75e431bad;p=myslice.git diff --git a/devel/server-loop.sh b/devel/server-loop.sh index a108f93d..1d94e8ee 100755 --- a/devel/server-loop.sh +++ b/devel/server-loop.sh @@ -3,11 +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 -make all-static all-templates while true; do - ./manage.py runserver 0.0.0.0:$port + # 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