Integrate uwsgi with django
[multicloud/framework.git] / multivimbroker / run.sh
index e73496f..8270deb 100755 (executable)
@@ -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