Skip to content

Commit 371662c

Browse files
committed
add asgi server
1 parent 9a5936b commit 371662c

File tree

4 files changed

+41
-48
lines changed

4 files changed

+41
-48
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dev:
77
uv run fastapi dev app/server.py --host 0.0.0.0 --port $(PORT)
88

99
run:
10-
uv run granian --interface asgi --workers 10 --host 0.0.0.0 --port $(PORT) app.server:app
10+
uv run uvicorn --workers 4 --host 0.0.0.0 --port $(PORT) app.server:app
1111

1212
start:
1313
make stop rm || true

docker-compose.yml

Whitespace-only changes.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ dependencies = [
88
"asyncpg>=0.30.0",
99
"fastapi[standard]>=0.115.4",
1010
"flask>=3.0.3",
11-
"granian>=1.6.3",
12-
"gunicorn>=23.0.0",
13-
"psycopg>=3.2.3",
11+
"psycopg[binary]>=3.2.3",
1412
"python-dotenv>=1.0.1",
13+
"uvicorn>=0.32.0",
1514
]
1615

1716
[tool.uv]

uv.lock

Lines changed: 38 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)