From d406f1538252368e637e4991271b4b179ab88d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 28 Mar 2022 02:27:14 +0000 Subject: [PATCH 1/2] app not a string --- api/kiwi_vpn_api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/main.py b/api/kiwi_vpn_api/main.py index 82c2fa8..9da2440 100755 --- a/api/kiwi_vpn_api/main.py +++ b/api/kiwi_vpn_api/main.py @@ -54,7 +54,7 @@ async def on_startup() -> None: def main() -> None: uvicorn.run( - "kiwi_vpn_api.main:app", + app=app, host="0.0.0.0", port=8000, reload=True, From 71ac02e5d770ebebefbd0e79e260dcb66432ec70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 28 Mar 2022 02:33:56 +0000 Subject: [PATCH 2/2] actually, app must be a string! --- api/kiwi_vpn_api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/main.py b/api/kiwi_vpn_api/main.py index 9da2440..3cca498 100755 --- a/api/kiwi_vpn_api/main.py +++ b/api/kiwi_vpn_api/main.py @@ -54,7 +54,7 @@ async def on_startup() -> None: def main() -> None: uvicorn.run( - app=app, + app="kiwi_vpn_api.main:app", host="0.0.0.0", port=8000, reload=True,