From d0b2d58b4a784049cfb10e0c52fa409bc829589d Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Thu, 1 Dec 2022 11:23:43 -0500 Subject: [PATCH] Exec web startup command This allows for app to receive process signals from cloud foundry --- deploy-config/sandbox.yml | 1 + scripts/migrate_and_run_web.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy-config/sandbox.yml b/deploy-config/sandbox.yml index de1490b5c..70e1da125 100644 --- a/deploy-config/sandbox.yml +++ b/deploy-config/sandbox.yml @@ -3,6 +3,7 @@ web_instances: 1 web_memory: 1G worker_instances: 1 worker_memory: 512M +scheduler_memory: 256M public_api_route: notify-api-sandbox.app.cloud.gov admin_base_url: https://notify-sandbox.app.cloud.gov ADMIN_CLIENT_SECRET: dev-notify-secret-key diff --git a/scripts/migrate_and_run_web.sh b/scripts/migrate_and_run_web.sh index 1fa94d1da..89a4dd5ea 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 -gunicorn -c ${HOME}/gunicorn_config.py application +exec gunicorn -c ${HOME}/gunicorn_config.py application