Merge "wsgi_sqlite: Make sure we're setting the sqlite database URL"
This commit is contained in:
commit
c406a9e0dd
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue