Commit 8ce96ac2 authored by Kevin Morris's avatar Kevin Morris Committed by Lukas Fleischer
Browse files

swap uvicorn out for hypercorn


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 21c45781
...@@ -11,7 +11,7 @@ before_script: ...@@ -11,7 +11,7 @@ before_script:
base-devel git gpgme protobuf pyalpm python-mysql-connector base-devel git gpgme protobuf pyalpm python-mysql-connector
python-pygit2 python-srcinfo python-bleach python-markdown python-pygit2 python-srcinfo python-bleach python-markdown
python-sqlalchemy python-alembic python-pytest python-werkzeug python-sqlalchemy python-alembic python-pytest python-werkzeug
python-pytest-tap python-fastapi uvicorn nginx python-authlib python-pytest-tap python-fastapi hypercorn nginx python-authlib
python-itsdangerous python-httpx python-itsdangerous python-httpx
test: test:
......
...@@ -48,7 +48,8 @@ read the instructions below. ...@@ -48,7 +48,8 @@ read the instructions below.
4) Install Python modules and dependencies: 4) Install Python modules and dependencies:
# pacman -S python-mysql-connector python-pygit2 python-srcinfo python-sqlalchemy \ # pacman -S python-mysql-connector python-pygit2 python-srcinfo python-sqlalchemy \
python-bleach python-markdown python-alembic python-bleach python-markdown python-alembic python-jinja \
python-itsdangerous python-authlib python-httpx hypercorn
# python3 setup.py install # python3 setup.py install
5) Create a new MySQL database and a user and import the aurweb SQL schema: 5) Create a new MySQL database and a user and import the aurweb SQL schema:
......
...@@ -31,6 +31,7 @@ class ProcessExceptions(Exception): ...@@ -31,6 +31,7 @@ class ProcessExceptions(Exception):
Compound exception used by stop() to list all the errors that happened when Compound exception used by stop() to list all the errors that happened when
terminating child processes. terminating child processes.
""" """
def __init__(self, message, exceptions): def __init__(self, message, exceptions):
self.message = message self.message = message
self.exceptions = exceptions self.exceptions = exceptions
...@@ -110,9 +111,7 @@ def start(): ...@@ -110,9 +111,7 @@ def start():
# FastAPI # FastAPI
host, port = aurweb.config.get("fastapi", "bind_address").rsplit(":", 1) host, port = aurweb.config.get("fastapi", "bind_address").rsplit(":", 1)
spawn_child(["python", "-m", "uvicorn", spawn_child(["python", "-m", "hypercorn", "-b", f"{host}:{port}",
"--host", host,
"--port", port,
"aurweb.asgi:app"]) "aurweb.asgi:app"])
# nginx # nginx
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment