Skip to content

Commit

Permalink
Log workers used by gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed May 21, 2024
1 parent 2baeb66 commit 669ad52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/s6-rc.d/backend/run
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ else
# https://docs.gunicorn.org/en/latest/design.html#how-many-workers
WORKERS=${GUNICORN_WORKERS:-$(((2 * $(nproc)) + 1))}

echo "Starting Gunicorn with ${WORKERS} workers"

python3 -m gunicorn redirectioneaza.wsgi \
--bind "unix:///run/gunicorn.sock" \
--log-level "${LOG_LEVEL}" \
Expand Down

0 comments on commit 669ad52

Please sign in to comment.