diff --git a/server.py b/server.py index f3869d6..0adec7a 100755 --- a/server.py +++ b/server.py @@ -29,7 +29,7 @@ import smarttools app = flask.Flask("Icinga Report In Gateway") -app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.sqlite' +app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('SQLALCHEMY_DATABASE_URI') or 'sqlite:///database.sqlite' app.config['JSON_CONFIG_FILE'] = 'services.json' app.config['JSON_CONFIG_DIR'] = 'config' db = SQLAlchemy(app)