Skip to content

Commit 7aaf062

Browse files
authored
Merge pull request #647 from chhsiao1981/uvicorn-for-asgi
change granian to uvicorn
2 parents 0b21e7f + 1a591d7 commit 7aaf062

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ COPY chris_backend/ ./
3939
RUN if [ "$ENVIRONMENT" = "production" ]; then \
4040
env DJANGO_SETTINGS_MODULE=config.settings.common ./manage.py collectstatic; fi
4141

42-
CMD ["granian", "--host", "0.0.0.0", "--interface", "asginl", "config.asgi:application"]
42+
CMD ["python3", "-m", "uvicorn", "--host", "0.0.0.0", "--port", "8000", "config.asgi:application"]

requirements/base.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ django-auth-ldap==5.2.0
1414
PyYAML==6.0.2
1515
whitenoise[brotli]==6.9.0
1616
PyJWT===2.10.1
17-
channels==4.2.2
18-
nats-py==2.10.0
19-
granian==2.2.6
17+
channels==4.3.1
18+
nats-py==2.11.0
19+
uvicorn[standard]==0.35.0
2020
git+https://github.com/tfranzel/drf-spectacular.git@refs/pull/1307/head

requirements/local.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ flake8==7.2.0
99
isort==6.0.1
1010
pudb==2025.1
1111
daphne==4.1.2 # required by (django) channels.testing
12-
granian[reload]
1312
https://github.com/msbrogli/rpudb/archive/master.zip

0 commit comments

Comments
 (0)