diff options
author | Bin Sun <bins@vmware.com> | 2018-03-30 10:44:35 +0800 |
---|---|---|
committer | Bin Sun <bins@vmware.com> | 2018-03-30 10:45:42 +0800 |
commit | 077d94ed3e2fb44c34fbe434418e491c80488077 (patch) | |
tree | e2252ba70f1c6c760657cf424caf1de4f0316f0a | |
parent | c0a677738bc2a1fe0364f976525a121a805a9838 (diff) |
Fix event listener deployment problem
Change-Id: I84f6cb8a20d76b9ed0e77644dd935dc523f920cc
Issue-ID: MULTICLOUD-149
Signed-off-by: Bin Sun <bins@vmware.com>
-rwxr-xr-x | vio/run.sh | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | vio/vio/event_listener/__init__.py | 0 | ||||
-rwxr-xr-x | vio/vio/event_listener/server.py | 6 |
3 files changed, 3 insertions, 5 deletions
@@ -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__) |