From d69de324ead45e29bef23d083ff99db245946080 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 31 Oct 2019 16:38:17 +0000 Subject: [PATCH] Change how the bash script is started. By adding `exec` to the entrypoint bash script for the application, we can trap an EXIT from the script and execute our custom `on_exit` method with checks if the application process is busy before terminating, waiting up to 10 seconds. Written by: @servingupaces @tlwr --- Procfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 79b31cf9e..d557a3a1b 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: unset GUNICORN_CMD_ARGS; scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py application +web: unset GUNICORN_CMD_ARGS; exec scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py application