mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 15:52:21 -05:00
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.
11 lines
167 B
Python
11 lines
167 B
Python
##!/usr/bin/env python
|
|
from __future__ import print_function
|
|
|
|
from flask import Flask
|
|
|
|
from app import create_app
|
|
|
|
application = Flask('app')
|
|
|
|
create_app(application)
|