mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05: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 sys
|
||||||
import traceback
|
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):
|
def on_starting(server):
|
||||||
server.log.info("Starting Notifications API")
|
server.log.info("Starting Notifications API")
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
buildpack: python_buildpack
|
buildpack: python_buildpack
|
||||||
command: scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py -k eventlet --worker-connections 256 --error-logfile /home/vcap/logs/gunicorn_error.log -w 5 -b 0.0.0.0:$PORT application
|
command: scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py application
|
||||||
services:
|
services:
|
||||||
- notify-db
|
- notify-db
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user