From cb272f402a3171b01684f0aad1c2b4086fbcf6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Dav=C3=B3?= Date: Mon, 5 Sep 2022 12:33:05 +0200 Subject: [PATCH] Moved some env definition from Docker to gunicorn --- Dockerfile | 3 --- gunicorn_config.py | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0382358c..28431ebf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,6 @@ ARG POPULATE_CACHE=0 WORKDIR /dao-analyzer -# A bug with docker makes it so its always hot-reloading -ENV DASH_HOT_RELOAD=false - RUN pip install --upgrade pip COPY . /dao-analyzer/ diff --git a/gunicorn_config.py b/gunicorn_config.py index dab90126..ee28837c 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -7,3 +7,7 @@ loglevel = 'info' errorlog = '-' workers = multiprocessing.cpu_count() * 2 + 1 +raw_env = [ + # A bug with gunicorn and dash makes it so its always hot-reloading + "DASH_HOT_RELOAD=false", +]