From 805ad2480a60dabd654af7e53708ea6dfc574075 Mon Sep 17 00:00:00 2001 From: areski Date: Fri, 7 Jun 2024 09:54:24 +0200 Subject: [PATCH] [fix](docker) honor env variable WEB_CONCURRENCY when running gunicorn --- {{cookiecutter.project_slug}}/compose/production/django/start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/start b/{{cookiecutter.project_slug}}/compose/production/django/start index 73f686bd7..3a297bbd8 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/start +++ b/{{cookiecutter.project_slug}}/compose/production/django/start @@ -28,7 +28,7 @@ if compress_enabled; then fi {%- endif %} {%- if cookiecutter.use_async == 'y' %} -exec /usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker +exec /usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 -w $WEB_CONCURRENCY --chdir=/app -k uvicorn.workers.UvicornWorker {%- else %} -exec /usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app +exec /usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 -w $WEB_CONCURRENCY --chdir=/app {%- endif %}