From 86725e39b43346ec7de7534b819430dc2bd19212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20L=C3=B3pez-Doriga?= Date: Fri, 24 May 2024 09:41:14 +0200 Subject: [PATCH] not blocking API --- beacon/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon/__main__.py b/beacon/__main__.py index ddcb678a..a4cdb8d9 100644 --- a/beacon/__main__.py +++ b/beacon/__main__.py @@ -168,6 +168,8 @@ async def main(path=None): await runner.setup() site = web.TCPSite(runner, '0.0.0.0', 5050) await site.start() + while True: + await asyncio.sleep(3600) else: static_files = Path(__file__).parent.parent.resolve() / "ui" / "static" beacon.add_routes([web.static("/static", str(static_files))])