diff options
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | pysite/constants.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index e7c9c991..587ecfd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ env: global: - PIPENV_VENV_IN_PROJECT=1 - PIPENV_IGNORE_VIRTUALENVS=1 + - RABBITMQ_HOST=localhost install: - pip install pipenv diff --git a/pysite/constants.py b/pysite/constants.py index a9040751..5c377300 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -122,7 +122,7 @@ BOT_EVENT_QUEUE = "bot_events" RMQ_USERNAME = environ.get("RABBITMQ_DEFAULT_USER") or "guest" RMQ_PASSWORD = environ.get("RABBITMQ_DEFAULT_PASS") or "guest" -RMQ_HOST = "pdrmq" if not DEBUG_MODE else "localhost" +RMQ_HOST = "pdrmq" if not DEBUG_MODE else environ.get("RABBITMQ_HOST") or "localhost" RMQ_PORT = 5672 # Channels |