Skip to content

Commit 2ccadca

Browse files
Use decouple to manage GUNICORN_WORKERS config
1 parent 0ebf02c commit 2ccadca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gunicorn.conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import os
2+
from decouple import config
23

34
bind = "0.0.0.0:8001"
45

5-
workers = int(os.getenv("GUNICORN_WORKERS", "3"))
6+
workers = int(config("GUNICORN_WORKERS", "3"))
67

78
timeout = 120
89

0 commit comments

Comments
 (0)