Skip to content

Commit

Permalink
feat: fix gunicorn config
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jun 6, 2024
1 parent c95b105 commit 9c10d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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"}

Expand Down
3 changes: 2 additions & 1 deletion gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -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 = "-"
Expand Down

0 comments on commit 9c10d3c

Please sign in to comment.