summaryrefslogtreecommitdiffstats
path: root/aurweb/spawn.py
diff options
context:
space:
mode:
Diffstat (limited to 'aurweb/spawn.py')
-rw-r--r--aurweb/spawn.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/aurweb/spawn.py b/aurweb/spawn.py
index 3c5130d7..e10db911 100644
--- a/aurweb/spawn.py
+++ b/aurweb/spawn.py
@@ -31,6 +31,7 @@ class ProcessExceptions(Exception):
Compound exception used by stop() to list all the errors that happened when
terminating child processes.
"""
+
def __init__(self, message, exceptions):
self.message = message
self.exceptions = exceptions
@@ -110,9 +111,7 @@ def start():
# FastAPI
host, port = aurweb.config.get("fastapi", "bind_address").rsplit(":", 1)
- spawn_child(["python", "-m", "uvicorn",
- "--host", host,
- "--port", port,
+ spawn_child(["python", "-m", "hypercorn", "-b", f"{host}:{port}",
"aurweb.asgi:app"])
# nginx