summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tasks.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 3eddf63..9d6e78d 100644
--- a/tasks.py
+++ b/tasks.py
@@ -3,8 +3,11 @@ import logging
from celery import Celery
from celery.task import periodic_task
from datetime import timedelta
+from os import environ
-celery = Celery('tasks', broker='redis://localhost')
+REDIS_URL = environ.get('REDISTOGO_URL', 'redis://localhost')
+
+celery = Celery('tasks', broker=REDIS_URL)
def fib(n):