From 3a1f890386272887a2de620ca5f1ee6d22bc3866 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 22 Mar 2024 14:54:05 +0100 Subject: [PATCH] bugfix wrong gunicorn config (from 4 workers to 1) related https://gitea.pangea.org/trustchain-oc1-orchestral/IdHub/issues/198 --- docker/idhub.entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/idhub.entrypoint.sh b/docker/idhub.entrypoint.sh index 91bd098..cc0e2e7 100755 --- a/docker/idhub.entrypoint.sh +++ b/docker/idhub.entrypoint.sh @@ -102,7 +102,10 @@ config_oidc4vp() { runserver() { if [ ! "${DEBUG:-}" = "true" ]; then ./manage.py collectstatic - gunicorn --access-logfile - --error-logfile - --workers 4 -b :${PORT} trustchain_idhub.wsgi:application + # reloading on source code changing is a debugging future, maybe better then use debug + # src https://stackoverflow.com/questions/12773763/gunicorn-autoreload-on-source-change/24893069#24893069 + # gunicorn with 1 worker, with more than 1 worker this is not expected to work + gunicorn --access-logfile - --error-logfile - -b :${PORT} trustchain_idhub.wsgi:application else ./manage.py runserver 0.0.0.0:${PORT} fi