aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-30 22:59:24 +0100
committerGravatar Gareth Coles <[email protected]>2018-05-30 22:59:24 +0100
commit5e16383ce6df09bd1147f5470e63fe2daa178581 (patch)
tree1bc1a3766c3cf5a922d01ac0333a10b6ed94d18b
parentTravis should probably run rabbitmq (diff)
Attempt to fix travis build
-rw-r--r--.travis.yml1
-rw-r--r--pysite/constants.py2
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