From cf0731d8febfb71333546a2db8222026edb11e46 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 9 Oct 2017 10:54:43 +0200 Subject: [PATCH] Copy over run.sh from oebb_py --- server/run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 server/run.sh diff --git a/server/run.sh b/server/run.sh new file mode 100755 index 0000000..d53b938 --- /dev/null +++ b/server/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +ip="0.0.0.0" +port="9229" + +workers=$((`getconf _NPROCESSORS_ONLN` * 4)) + +gunicorn -w $workers -b $ip:$port -n "HTTPNS" main