From 9103e4e1e68b780df51ffd2d8903c7ec8ac10dad Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 31 Jul 2025 08:11:48 -0700 Subject: [PATCH 1/3] add port --- scripts/migrate_and_run_web.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/migrate_and_run_web.sh b/scripts/migrate_and_run_web.sh index ed999a24e..477e88165 100755 --- a/scripts/migrate_and_run_web.sh +++ b/scripts/migrate_and_run_web.sh @@ -4,4 +4,4 @@ if [[ $CF_INSTANCE_INDEX -eq 0 ]]; then flask db upgrade fi -exec newrelic-admin run-program gunicorn -c ${HOME}/gunicorn_config.py gunicorn_entry:application +exec newrelic-admin run-program gunicorn -c ${HOME}/gunicorn_config.py -b 0.0.0.0:6011 gunicorn_entry:application From 4dde94433abe3766eba8ab7ec2feb130831d16b5 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 31 Jul 2025 11:16:51 -0700 Subject: [PATCH 2/3] put timeout back --- gunicorn_config.py | 2 +- scripts/migrate_and_run_web.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn_config.py b/gunicorn_config.py index 5f7954884..3d8c80ecf 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -18,7 +18,7 @@ worker_connections = 256 bind = "0.0.0.0:{}".format(os.getenv("PORT")) statsd_host = "{}:8125".format(os.getenv("STATSD_HOST")) gunicorn.SERVER_SOFTWARE = "None" - +timeout = 240 def on_starting(server): server.log.info("Starting Notifications API") diff --git a/scripts/migrate_and_run_web.sh b/scripts/migrate_and_run_web.sh index 477e88165..ed999a24e 100755 --- a/scripts/migrate_and_run_web.sh +++ b/scripts/migrate_and_run_web.sh @@ -4,4 +4,4 @@ if [[ $CF_INSTANCE_INDEX -eq 0 ]]; then flask db upgrade fi -exec newrelic-admin run-program gunicorn -c ${HOME}/gunicorn_config.py -b 0.0.0.0:6011 gunicorn_entry:application +exec newrelic-admin run-program gunicorn -c ${HOME}/gunicorn_config.py gunicorn_entry:application From 4cabe0ea8bc875c917d1c0c6ba9df83ebcf7b23e Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 31 Jul 2025 11:19:18 -0700 Subject: [PATCH 3/3] fix format --- gunicorn_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gunicorn_config.py b/gunicorn_config.py index 063838977..ecc0de775 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -14,6 +14,7 @@ statsd_host = "{}:8125".format(os.getenv("STATSD_HOST")) gunicorn.SERVER_SOFTWARE = "None" timeout = 240 + def on_starting(server): server.log.info("Starting Notifications API")