plugins: migrated hazelnut and googlemaps to the new plugin class, updated plugin...
[myslice.git] / devel / server-loop.sh
1 #!/bin/bash
2 DIRNAME=$(dirname $0)
3 cd $DIRNAME/..
4
5 # default port : if hostname starts with z -> use 8080 ; otherwise take 80
6 hostname | grep -q '^z' && port=8080 || port=80
7 [[ -n "$@" ]] && port=$1
8
9 while true; do 
10     ./manage.py collectstatic --noinput
11     ./manage.py runserver 0.0.0.0:$port
12         sleep 1
13 done