mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -05:00
Attempt to fix gunicorn config
There is something currently breaking our deployment and this is an attempt to revert recent changes to try and get things working again. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
# import logging
|
||||
import os # noqa
|
||||
import socket # noqa
|
||||
import sys # noqa
|
||||
import traceback # noqa
|
||||
|
||||
import gunicorn
|
||||
|
||||
from app.utils import hilite # noqa
|
||||
import gunicorn # noqa
|
||||
|
||||
# This will give us a better stack trace if
|
||||
workers = 4
|
||||
worker_class = "gevent"
|
||||
worker_connections = 256
|
||||
# logging.basicConfig(level=logging.INFO)
|
||||
# timeout = 240
|
||||
# logging.info(hilite(f"Gunicorn timeout set to {timeout} seconds"))
|
||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
||||
gunicorn.SERVER_SOFTWARE = "None"
|
||||
|
||||
Reference in New Issue
Block a user