Update gunicorn.conf.py
Browse files- gunicorn.conf.py +3 -4
gunicorn.conf.py
CHANGED
|
@@ -3,9 +3,8 @@ import os
|
|
| 3 |
|
| 4 |
worker_class = 'uvicorn.workers.UvicornWorker'
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
workers = int(os.environ.get('GUNICORN_WORKERS', '
|
| 8 |
-
# ---
|
| 9 |
|
| 10 |
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
|
| 11 |
-
# timeout = 120 # Optional
|
|
|
|
| 3 |
|
| 4 |
worker_class = 'uvicorn.workers.UvicornWorker'
|
| 5 |
|
| 6 |
+
# Can set back to 2 or more if desired, now that init is in lifespan
|
| 7 |
+
workers = int(os.environ.get('GUNICORN_WORKERS', '2'))
|
|
|
|
| 8 |
|
| 9 |
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
|
| 10 |
+
# timeout = 120 # Optional
|