]> git.openstreetmap.org Git - nominatim.git/commitdiff
add wsgi entry point for falcon server
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 28 Mar 2023 13:05:52 +0000 (15:05 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 28 Mar 2023 13:05:52 +0000 (15:05 +0200)
nominatim/server/falcon/server.py

index 7478ec39c1275b9e51f896e1c753eed0a8b08e16..c11cf4a845de734f1f68319990ebb6b179ca40d1 100644 (file)
@@ -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('.'))