Skip to content

Commit

Permalink
Support for PRELOAD_APP environment variable (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Jul 5, 2023
1 parent 775542a commit 8d03846
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
wsgi_app = "mwdb.app:app"
bind = "0.0.0.0:8080"
user = "nobody"
preload_app = bool(int(os.getenv("PRELOAD_APP", "0")))
reload = bool(int(os.getenv("HOT_RELOAD", "0")))
workers = int(os.getenv("GUNICORN_WORKERS", "4"))

0 comments on commit 8d03846

Please sign in to comment.