ensure app can run on paas

instead of using wsgi, we now use "application" - this tells gunicorn
to look inside the python module application (application.py) for a
wsgi app - and by default that is also called application so rename
the variable.

Also, when running tasks, we're not using gunicorn so need to set the
flask variable in the manifest so that `flask command ...` finds the
app properly.

Remove server_commands as it's not used any more.
This commit is contained in:
Leo Hemsted
2017-11-22 16:31:04 +00:00
parent cd6f85281c
commit b727f53836
3 changed files with 4 additions and 26 deletions

View File

@@ -5,6 +5,6 @@ from flask import Flask
from app import create_app
app = Flask('app')
application = Flask('app')
create_app(app)
create_app(application)