]> git.parisson.com Git - teleforma.git/commitdiff
uvicorn: add host feature/upgrade
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 26 Jun 2022 22:15:37 +0000 (00:15 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 26 Jun 2022 22:15:37 +0000 (00:15 +0200)
app/asgi.sh

index 487e8883c688e2d712958067645e7afe41de5773..f6409ce5b67cb8bcf0921775675f26c183606c38 100755 (executable)
@@ -13,8 +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
-    uvicorn asgi:application --log-level warning --workers 8
+    #daphne -b 0.0.0.0 -p 8000 asgi:application
+    uvicorn asgi:application --host 0.0.0.0 --log-level info --workers 8 --ws websockets
 fi