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