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
This commit is contained in:
Rebecca Law
2019-10-31 16:38:17 +00:00
parent 58cfce8760
commit d69de324ea

View File

@@ -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