mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 08:48:24 -04:00
disable gunicorn access logs
they're turning up in syslog, which means they're getting into kibana now also move config settings from manifest to gunicorn_config.py
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
workers = 5
|
||||||
|
worker_class = "eventlet"
|
||||||
|
errorlog = "/home/vcap/logs/gunicorn_error.log"
|
||||||
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
|
disable_redirect_access_to_syslog = True
|
||||||
|
|
||||||
|
|
||||||
def worker_abort(worker):
|
def worker_abort(worker):
|
||||||
worker.log.info("worker received ABORT")
|
worker.log.info("worker received ABORT")
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ command: >
|
|||||||
scripts/run_app_paas.sh
|
scripts/run_app_paas.sh
|
||||||
gunicorn
|
gunicorn
|
||||||
-c /home/vcap/app/gunicorn_config.py
|
-c /home/vcap/app/gunicorn_config.py
|
||||||
--error-logfile /home/vcap/logs/gunicorn_error.log
|
|
||||||
-w 5
|
|
||||||
-b 0.0.0.0:$PORT
|
|
||||||
-k eventlet
|
|
||||||
application
|
application
|
||||||
|
|
||||||
instances: 1
|
instances: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user