Merge "wsgi_sqlite: Make sure we're setting the sqlite database URL"

This commit is contained in:
Zuul 2018-04-08 21:17:03 +00:00 committed by Gerrit Code Review
commit c406a9e0dd
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ def application(environ, start_response):
from ara.webapp import create_app
try:
app = create_app()
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(database)
app.config['APPLICATION_ROOT'] = match.group('path')
return app(environ, start_response)
except Exception as e: