mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 10:03:38 -04:00
Move config from command line args to gunicorn_config.py
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
workers = 5
|
||||
worker_class = "eventlet"
|
||||
worker_connections = 256
|
||||
errorlog = "/home/vcap/logs/gunicorn_error.log"
|
||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||
|
||||
|
||||
def on_starting(server):
|
||||
server.log.info("Starting Notifications API")
|
||||
|
||||
Reference in New Issue
Block a user