read broker url from env var

v1-0-stable
Christian Merten 8 years ago
parent a0b360fb88
commit 63f0fd23ba

@ -175,4 +175,4 @@ ADMINS = (('admin', 'christian@merten-moser.de'),)
# Celery and Redis setup # Celery and Redis setup
REDIS_HOST = 'localhost' REDIS_HOST = 'localhost'
REDIS_PORT = '6379' REDIS_PORT = '6379'
BROKER_URL = 'redis://' + REDIS_HOST + ':' + REDIS_PORT + '/0' BROKER_URL = os.environ.get('BROKER_URL', 'redis://' + REDIS_HOST + ':' + REDIS_PORT + '/0')

Loading…
Cancel
Save