From ee09d6084d584912ea11a9f53f1fa0ed3f3d17c5 Mon Sep 17 00:00:00 2001 From: Felix Delattre <fd@gfz-potsdam.de> Date: Wed, 17 Nov 2021 16:04:03 +0000 Subject: [PATCH] Switched to hypercorn server for OBM Data API --- Dockerfile | 6 +++--- files/supervisord.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f11f2d..8eb3af6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,11 +21,11 @@ RUN apt-get update -y && apt-get install --no-install-recommends -y \ python3-pip supervisor RUN pip3 install --upgrade \ - wheel \ - setuptools \ + hypercorn \ pip \ Quart \ - gunicorn + setuptools \ + wheel \ RUN pip3 install https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/data-api-server/-/archive/master/data-api-server-master.zip diff --git a/files/supervisord.conf b/files/supervisord.conf index 0bd8551..bed28d8 100644 --- a/files/supervisord.conf +++ b/files/supervisord.conf @@ -2,7 +2,7 @@ nodaemon=true [program:quartweb] -command=gunicorn --worker-class quart.worker.GunicornWorker -w 4 -b 0.0.0.0:5000 app:app +command=hypercorn --workers 4 --bind '0.0.0.0:5000' app:app directory=/srv/quart autostart=true autorestart=true -- GitLab