Пример #1
0
    def __init__(self, app, options=None):
        """

        :param app:
        :param options:
        """
        BaseApplication.__init__(self, app, options)
        WSGIServer.__init__(self)
Пример #2
0
 def run(self):
     if not self.app.check_thread_support():
         raise RuntimeError(
             "Database configuration is not suitable for deployment (not thread-safe)."
         )
     self.app.start_indexing()
     return BaseApplication.run(self)
Пример #3
0
 def run(self):
     if not self.app.supports_threads:
         raise RuntimeError(
             "Database configuration is not suitable for deployment (not thread-safe)."
         )
     return BaseApplication.run(self)
Пример #4
0
 def __init__(self, *args, **kwargs):
     KnowledgeDeployer.__init__(self, *args, **kwargs)
     BaseApplication.__init__(self)
Пример #5
0
    def run(self):
        """

        """
        WSGIServer.run(self)
Пример #6
0
 def __init__(self, app, config) -> None:
     self.app = app
     self.config = config
     BaseApplication.__init__(self)
Пример #7
0
 def __init__(self, *args, **kwargs):
     KnowledgeDeployer.__init__(self, *args, **kwargs)
     BaseApplication.__init__(self)
Пример #8
0
 def run(self):
     if not self.app.check_thread_support():
         raise RuntimeError("Database configuration is not suitable for deployment (not thread-safe).")
     return BaseApplication.run(self)
Пример #9
0
 def execute(self):
     GunicornBaseEngine.run(self)
Пример #10
0
 def __init__(self, app):
     self.app = app
     GunicornBaseEngine.__init__(self)
Пример #11
0
 def __init__(self, *args, **kwargs):
     QualipyDeployer.__init__(self, *args, **kwargs)
     BaseApplication.__init__(self)
Пример #12
0
 def run(self):
     WSGIServer.run(self)
Пример #13
0
 def __init__(self, app, options=None):
     assert WSGIServer is not object, "you must install 'gunicorn'"
     BaseApplication.__init__(self, app, options)
     WSGIServer.__init__(self)