mirror of
https://github.com/kennethreitz/flask-heroku.git
synced 2026-06-21 07:20:56 +00:00
20 lines
461 B
Python
20 lines
461 B
Python
#!/usr/bin/env python
|
|
|
|
from os import environ
|
|
|
|
class Heroku(object):
|
|
"""Heroku configurations for flask."""
|
|
|
|
def __init__(self, app):
|
|
self.app = app
|
|
|
|
# SQL-Alchemy
|
|
self.app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
|
|
|
|
# Sentry
|
|
self.app.config['SENTRY_DSN'] = environ.get('SENTRY_DSN')
|
|
|
|
# Exceptional
|
|
self.app.config['EXCEPTIONAL_API_KEY'] = environ.get('EXCEPTIONAL_API_KEY')
|
|
|