Exemplo n.º 1
0
 def create_app(self):
     '''Create the wsgi application'''
     _app = app.create_app()
     return _app
Exemplo n.º 2
0
# -*- coding: utf-8 -*-
"""
    wsgi
    ~~~~
    entrypoint wsgi script
"""

from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware

from object_service import app

application = app.create_app()

if __name__ == "__main__":
    run_simple('0.0.0.0',
               4000,
               application,
               use_reloader=False,
               use_debugger=True)