From 9c10d3cd306f5a88a63d11c61925856818bae04d Mon Sep 17 00:00:00 2001 From: helllllllder Date: Thu, 6 Jun 2024 17:04:49 -0300 Subject: [PATCH] feat: fix gunicorn config --- docker-entrypoint.sh | 2 +- gunicorn.conf.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index cc681b5..0e7643c 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -export GUNICORN_APP=${GUNICORN_APP:-"chats.wsgi"} +export GUNICORN_APP=${GUNICORN_APP:-"insights.wsgi"} export GUNICORN_CONF=${GUNICORN_CONF:-"${PROJECT_PATH}/gunicorn.conf.py"} export LOG_LEVEL=${LOG_LEVEL:-"INFO"} diff --git a/gunicorn.conf.py b/gunicorn.conf.py index f1d02d7..0ec33d6 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,7 +1,8 @@ import multiprocessing import os -workers = os.environ.get("GUNICORN_WORKERS", multiprocessing.cpu_count() * 2 + 1)proc_name = "insights-engine" +workers = os.environ.get("GUNICORN_WORKERS", multiprocessing.cpu_count() * 2 + 1) +proc_name = "insights-engine" default_proc_name = proc_name accesslog = "-" errorlog = "-"