From: Guillaume Pellerin Date: Fri, 16 Jul 2021 12:27:31 +0000 (+0200) Subject: use uvicorn for channels X-Git-Tag: 2.7.1~33^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=896cfca0f5f647457c32119efda51e5d06d3fb65;p=teleforma.git use uvicorn for channels --- 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