diff --git a/gunicorn_config.py b/gunicorn_config.py index 11993ab78..1d3ed6324 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -1,6 +1,13 @@ +import os import sys 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): worker.log.info("worker received ABORT") diff --git a/manifest-base.yml b/manifest-base.yml index 9a0705e75..1fc6e24bf 100644 --- a/manifest-base.yml +++ b/manifest-base.yml @@ -5,10 +5,6 @@ command: > scripts/run_app_paas.sh gunicorn -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 instances: 1