summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Sun <bins@vmware.com>2018-03-30 10:44:35 +0800
committerBin Sun <bins@vmware.com>2018-03-30 10:45:42 +0800
commit077d94ed3e2fb44c34fbe434418e491c80488077 (patch)
treee2252ba70f1c6c760657cf424caf1de4f0316f0a
parentc0a677738bc2a1fe0364f976525a121a805a9838 (diff)
Fix event listener deployment problem
Change-Id: I84f6cb8a20d76b9ed0e77644dd935dc523f920cc Issue-ID: MULTICLOUD-149 Signed-off-by: Bin Sun <bins@vmware.com>
-rwxr-xr-xvio/run.sh2
-rw-r--r--[-rwxr-xr-x]vio/vio/event_listener/__init__.py0
-rwxr-xr-xvio/vio/event_listener/server.py6
3 files changed, 3 insertions, 5 deletions
diff --git a/vio/run.sh b/vio/run.sh
index 4b58fe5..404f1d6 100755
--- a/vio/run.sh
+++ b/vio/run.sh
@@ -32,7 +32,7 @@ then
else
# nohup python manage.py runserver 0.0.0.0:9004 2>&1 &
nohup uwsgi --http :9004 --module vio.wsgi --master --processes 4 &
- nohup python vio/event_listener/server.py 2>&1 &
+ nohup python -m vio.event_listener.server 2>&1 &
while [ ! -f $logDir/vio.log ]; do
sleep 1
diff --git a/vio/vio/event_listener/__init__.py b/vio/vio/event_listener/__init__.py
index 012fba8..012fba8 100755..100644
--- a/vio/vio/event_listener/__init__.py
+++ b/vio/vio/event_listener/__init__.py
diff --git a/vio/vio/event_listener/server.py b/vio/vio/event_listener/server.py
index 5e6dc00..3736a93 100755
--- a/vio/vio/event_listener/server.py
+++ b/vio/vio/event_listener/server.py
@@ -9,10 +9,8 @@ import ConfigParser
import json
import os
import requests
-import sys
-sys.path.append("..")
-from pub.config.config import MR_ADDR # noqa
-from pub.config.config import MR_PORT # noqa
+from vio.pub.config.config import MR_ADDR
+from vio.pub.config.config import MR_PORT
LOG = logging.getLogger(__name__)