5 # default port : if hostname starts with z or with srv- -> use 8000 ; otherwise take 80
6 hostname | egrep -q '^(z|srv-)' && port=8000 || port=80
7 [[ -n "$@" ]] && port=$1
10 # we use make for convenience
11 # but what the static target really does is to invoke manage.py collectstatic
13 ./manage.py runserver 0.0.0.0:$port