]> git.parisson.com Git - teleforma.git/commitdiff
8 workers
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 26 Jun 2022 21:38:17 +0000 (23:38 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 26 Jun 2022 21:38:17 +0000 (23:38 +0200)
app/asgi.sh
env/dev.yml
requirements.txt

index ec155187a847cf23460b45b8f82a5b6be62235d0..487e8883c688e2d712958067645e7afe41de5773 100755 (executable)
@@ -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 asgi:application --log-level warning --workers 8
 fi
 
 
index fc5d834342089bc58d56430982775c83d06bc604..240d15b24bfb8a133f0f32cc867980511b22f724 100644 (file)
@@ -28,3 +28,22 @@ services:
       ports:
         - "9000:8000"
 
+  channels:
+    build:
+      context: .
+      args:
+        dev: 0
+    command: /bin/sh /srv/app/asgi.sh
+    volumes:
+      - ./app/:/srv/app
+      - ./bin:/srv/bin
+      - ./lib:/srv/lib
+      - ./teleforma/:/srv/src/teleforma/teleforma
+      - ./var/log/app:/var/log/app
+    ports:
+      - "9002:8000"
+    links:
+      - db
+      - redis
+    env_file:
+      - env/staging.env
index ac078ea46324d4c672cef457ff05d78567e3efb2..84ed4a59c533df69c5095e398a90f116ba619cd7 100644 (file)
@@ -35,4 +35,4 @@ daphne==3.0.2
 pymemcache==3.4.4
 django-debug-toolbar==3.2.1
 ipython
-uvicorn==0.18.1
+uvicorn[standard]==0.18.1