git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.onelab.eu/git/myslice
[myslice.git]
/
devel
/
server-loop.sh
diff --git
a/devel/server-loop.sh
b/devel/server-loop.sh
index
9c9d727
..
49d433e
100755
(executable)
--- a/
devel/server-loop.sh
+++ b/
devel/server-loop.sh
@@
-3,9
+3,14
@@
DIRNAME=$(dirname $0)
cd $DIRNAME/..
# default port : if hostname starts with z -> use 8080 ; otherwise take 80
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
+#hostname | grep -q '^z' && port=8080 || port=80
[[ -n "$@" ]] && port=$1
while true; do
[[ -n "$@" ]] && port=$1
while true; do
+ # 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
./manage.py runserver 0.0.0.0:$port
+ sleep 1
done
done