Skip to content

Commit

Permalink
Moved some env definition from Docker to gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddavo committed Sep 5, 2022
1 parent 4deb471 commit cb272f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
4 changes: 4 additions & 0 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

0 comments on commit cb272f4

Please sign in to comment.