コード例 #1
0
    def create_app(self):
        '''Create the wsgi application'''
        app_ = app.create_app(**{
            'FOO': ['bar', {}],
            'SERVICE_TOKEN': 'secret_token',
        })

        return app_
コード例 #2
0
ファイル: test_internals.py プロジェクト: adsabs/vis-services
    def create_app(self):
        '''Create the wsgi application'''
        app_ = app.create_app(**{
            'FOO': ['bar', {}],
            'VIS_SERVICE_API_TOKEN': 'secret_token',
               })            

        return app_
コード例 #3
0
 def create_app(self):
     """
     Create the wsgi application
     """
     app_ = app.create_app()
     return app_
コード例 #4
0
 def create_app(self):
     '''Create the wsgi application'''
     app_ = app.create_app()
     return app_
コード例 #5
0
ファイル: test_endpoints.py プロジェクト: adsabs/vis-services
 def create_app(self):
     '''Create the wsgi application'''
     app_ = app.create_app()
     return app_
コード例 #6
0
ファイル: wsgi.py プロジェクト: adsabs/vis-services
# -*- coding: utf-8 -*-
"""
    wsgi
    ~~~~

    entrypoint wsgi script
"""

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

from vis_services import app

application = app.create_app()

if __name__ == "__main__":
    run_simple('0.0.0.0', 4000, application, use_reloader=False,
               use_debugger=True)
コード例 #7
0
# -*- coding: utf-8 -*-
"""
    wsgi
    ~~~~

    entrypoint wsgi script
"""

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

from vis_services import app

application = app.create_app()

if __name__ == "__main__":
    run_simple('0.0.0.0',
               4000,
               application,
               use_reloader=False,
               use_debugger=True)
コード例 #8
0
 def create_app(self):
     """
     Create the wsgi application
     """
     app_ = app.create_app()
     return app_