diff --git a/aore/miscutils/bottlecl.py b/aore/miscutils/bottlecl.py index f424685..371338a 100644 --- a/aore/miscutils/bottlecl.py +++ b/aore/miscutils/bottlecl.py @@ -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 diff --git a/passenger_wsgi.py b/passenger_wsgi.py index 48a287f..4d1ac54 100644 --- a/passenger_wsgi.py +++ b/passenger_wsgi.py @@ -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__':