summaryrefslogtreecommitdiffstats
path: root/multivimbroker/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'multivimbroker/run.sh')
-rwxr-xr-xmultivimbroker/run.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/multivimbroker/run.sh b/multivimbroker/run.sh
index 35f2b9e..8270deb 100755
--- a/multivimbroker/run.sh
+++ b/multivimbroker/run.sh
@@ -26,10 +26,15 @@ if [ ! -x $logDir ]; then
mkdir -p $logDir
fi
-nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
+if [ "$WEB_FRAMEWORK" == "pecan" ]
+then
+ python multivimbroker/scripts/api.py
+else
+ # 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
-done
+ while [ ! -f $logDir/multivimbroker.log ]; do
+ sleep 1
+ done
-tail -F $logDir/multivimbroker.log
+ tail -F $logDir/multivimbroker.log