From 896cfca0f5f647457c32119efda51e5d06d3fb65 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 16 Jul 2021 14:27:31 +0200 Subject: [PATCH] use uvicorn for channels --- app/asgi.sh | 3 ++- requirements.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/asgi.sh b/app/asgi.sh index ec155187..a3c68879 100755 --- a/app/asgi.sh +++ b/app/asgi.sh @@ -13,7 +13,8 @@ else # static files auto update # watchmedo shell-command --patterns="$patterns" --recursive \ # --command='python '$manage' collectstatic --noinput' $app & - daphne -b 0.0.0.0 -p 8000 asgi:application + # daphne -b 0.0.0.0 -p 8000 asgi:application + uvicorn --host 0.0.0.0 --port 8000 --workers 8 asgi:application fi diff --git a/requirements.txt b/requirements.txt index 0259f328..9f346f83 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,3 +35,4 @@ daphne==3.0.2 pymemcache==3.4.4 django-debug-toolbar==3.2.1 ipython +uvicorn==0.14.0 -- 2.39.5