diff --git a/flask_heroku.py b/flask_heroku.py index f0794f5..0aceb15 100644 --- a/flask_heroku.py +++ b/flask_heroku.py @@ -67,6 +67,14 @@ def init_app(self, app): app.config.setdefault('MAIL_PASSWORD', environ.get('POSTMARK_API_KEY')) app.config.setdefault('MAIL_USE_TLS', True) + # Heroku Redis + redis_url = environ.get('REDIS_URL') + if redis_url: + url = urlparse(redis_url) + app.config.setdefault('REDIS_HOST', url.hostname) + app.config.setdefault('REDIS_PORT', url.port) + app.config.setdefault('REDIS_PASSWORD', url.password) + # Redis To Go redis_url = environ.get('REDISTOGO_URL') if redis_url: