Skip to content

Commit 6184506

Browse files
committed
docker-entrypoint.sh: Enforce >=2 Gunicorn workers
1 parent 600b00e commit 6184506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ python3 -m django migrate
3838
gunicorn_args=(
3939
--name=jawanndenn
4040
--bind=0.0.0.0:54080
41-
--workers="$(nproc --ignore=1)"
41+
--workers="$(( $(nproc --ignore=1) + 1 ))" # i.e. always >=2
4242
--timeout 5
4343
--access-logfile=-
4444
--access-logformat '%({x-forwarded-for}i)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'

0 commit comments

Comments
 (0)