From c150ca4889d50fab5d6b75e4f86cf2ec4dc510ae Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 28 Mar 2023 15:05:52 +0200 Subject: [PATCH] add wsgi entry point for falcon server --- nominatim/server/falcon/server.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nominatim/server/falcon/server.py b/nominatim/server/falcon/server.py index 7478ec39..c11cf4a8 100644 --- a/nominatim/server/falcon/server.py +++ b/nominatim/server/falcon/server.py @@ -101,3 +101,11 @@ def get_application(project_dir: Path, app.add_route(f"/{name}.php", endpoint) return app + + +def run_wsgi() -> App: + """ Entry point for uvicorn. + + Make sure uvicorn is run from the project directory. + """ + return get_application(Path('.')) -- 2.39.5