Fix callable (3rd)
This commit is contained in:
parent
6425471dae
commit
255f895993
@ -8,9 +8,6 @@ class BottleCL(object):
|
||||
self._app = Bottle()
|
||||
self.init_routes()
|
||||
|
||||
def __call__(self, environ, start_response):
|
||||
self._app.__call__(environ, start_response)
|
||||
|
||||
def init_routes(self):
|
||||
pass
|
||||
|
||||
|
@ -9,7 +9,9 @@ except ImportError:
|
||||
assert "No config"
|
||||
|
||||
# Define main app
|
||||
application = phias.App("pyphias.log")
|
||||
phias_app = phias.App("pyphias.log")
|
||||
# Define wsgi app
|
||||
application = phias_app._app
|
||||
|
||||
# Run bottle WSGI server if no external
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user