pdc_web.py
531 Bytes
"""
Flask app wrapper to be used by different callers
- with `flask run' invocation with FLASK_APP='pdc_web'
- inside pdc_web.wsgi as wsgi application in apache
- through uwsgi.ini for use with wsgi and nginx for example
"""
from app import create_app, cli
#
# Use app factory with configuration set by FLASK_ENV
# see app/__init_.py/create_app() for more details.
#
pdc_app = create_app()
#
# Declare command line interpreter
# used with 'flask pdc-tools' command
# see aroma/cli.py for more details.
#
cli.register(pdc_app)