From: Sarah Hoffmann Date: Tue, 28 Mar 2023 13:05:52 +0000 (+0200) Subject: add wsgi entry point for falcon server X-Git-Tag: v4.3.0~86^2~3 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/c150ca4889d50fab5d6b75e4f86cf2ec4dc510ae add wsgi entry point for falcon server --- 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('.'))