Blame view

pdc_web.py 531 Bytes
6b1ff46a   hitier   Better module doc...
1
2
3
4
5
6
"""
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
"""
508144eb   hitier   Add cli pattern
7
from app import create_app, cli
3122f2f8   hitier   Running mode 1: f...
8
9
10
11
12
13

#
# Use app factory with configuration set by FLASK_ENV
# see app/__init_.py/create_app() for more details.
#
pdc_app = create_app()
508144eb   hitier   Add cli pattern
14
15
16

#
# Declare command line interpreter
6b1ff46a   hitier   Better module doc...
17
# used with 'flask pdc-tools' command
508144eb   hitier   Add cli pattern
18
19
20
# see aroma/cli.py for more details.
#
cli.register(pdc_app)