Delete
Browse files- gunicorn_config.py +0 -29
gunicorn_config.py
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
# Gunicorn configuration file
|
| 2 |
-
import multiprocessing
|
| 3 |
-
|
| 4 |
-
# Server socket
|
| 5 |
-
bind = "0.0.0.0:5000"
|
| 6 |
-
|
| 7 |
-
# Worker processes
|
| 8 |
-
workers = 1
|
| 9 |
-
worker_class = "gthread" # Cambiado de gevent a gthread para coincidir con los logs
|
| 10 |
-
threads = 4
|
| 11 |
-
|
| 12 |
-
# Timeout settings
|
| 13 |
-
timeout = 300
|
| 14 |
-
keepalive = 2
|
| 15 |
-
|
| 16 |
-
# Server mechanics
|
| 17 |
-
preload_app = True
|
| 18 |
-
|
| 19 |
-
# Logging
|
| 20 |
-
accesslog = "-"
|
| 21 |
-
errorlog = "-"
|
| 22 |
-
loglevel = "info"
|
| 23 |
-
|
| 24 |
-
# Health check settings
|
| 25 |
-
def on_starting(server):
|
| 26 |
-
print("Gunicorn server is starting up...")
|
| 27 |
-
|
| 28 |
-
def when_ready(server):
|
| 29 |
-
print("Gunicorn server is ready. Health check should now respond.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|