summaryrefslogtreecommitdiffstats
path: root/multivimbroker/run.sh
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-24 00:28:34 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-24 00:28:34 +0800
commit38e7e69c0b0db058fc6e7e3d546d3d4036b082eb (patch)
tree8189f80cff6e5e29a3e4f42944ae66c3b55ee03b /multivimbroker/run.sh
parente4936668b2b89a5840344a17f6ec5356ec0035a5 (diff)
Integrate uwsgi with django
To enable parallel processing of framework services Change-Id: I3142c2ea742918027e7f397b6fe9aece329788a5 Issue-ID: MULTICLOUD-187 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'multivimbroker/run.sh')
-rwxr-xr-xmultivimbroker/run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/multivimbroker/run.sh b/multivimbroker/run.sh
index e73496f..8270deb 100755
--- a/multivimbroker/run.sh
+++ b/multivimbroker/run.sh
@@ -30,7 +30,8 @@ if [ "$WEB_FRAMEWORK" == "pecan" ]
then
python multivimbroker/scripts/api.py
else
- nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
+ # nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
+ nohup uwsgi --http :9001 --module multivimbroker.wsgi --master --processes 4 &
while [ ! -f $logDir/multivimbroker.log ]; do
sleep 1