mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 01:02:09 -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 os # noqa
|
||||||
import socket # noqa
|
import socket # noqa
|
||||||
import sys # noqa
|
import sys # noqa
|
||||||
import traceback # noqa
|
import traceback # noqa
|
||||||
|
|
||||||
import gunicorn
|
import gunicorn # noqa
|
||||||
|
|
||||||
from app.utils import hilite # noqa
|
|
||||||
|
|
||||||
# This will give us a better stack trace if
|
# This will give us a better stack trace if
|
||||||
workers = 4
|
workers = 4
|
||||||
worker_class = "gevent"
|
worker_class = "gevent"
|
||||||
worker_connections = 256
|
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"))
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
||||||
gunicorn.SERVER_SOFTWARE = "None"
|
gunicorn.SERVER_SOFTWARE = "None"
|
||||||
|
|||||||
Reference in New Issue
Block a user