kopia lustrzana https://github.com/jedie/PyInventory
move some gunicorn settings into gunicorn.conf.py
rodzic
9dec9460ab
commit
9f0e3ddba6
|
@ -33,10 +33,6 @@ fi
|
|||
GUNICORN_CMD_ARGS=<<'EOF'
|
||||
--config /django/gunicorn.conf.py
|
||||
--bind "$(hostname):8000"
|
||||
--pid="/tmp/gunicorn.pid"
|
||||
--access-logfile="-"
|
||||
--error-logfile="-"
|
||||
--log-level=info
|
||||
EOF
|
||||
|
||||
(
|
||||
|
|
|
@ -1,4 +1,16 @@
|
|||
"""
|
||||
Configuration for Gunicorn
|
||||
"""
|
||||
import multiprocessing
|
||||
|
||||
|
||||
# https://docs.gunicorn.org/en/latest/settings.html#workers
|
||||
workers = multiprocessing.cpu_count() * 2 + 1
|
||||
|
||||
# https://docs.gunicorn.org/en/latest/settings.html#logging
|
||||
loglevel = 'info'
|
||||
accesslog = '-' # log to stdout
|
||||
errorlog = '-' # log to stdout
|
||||
|
||||
# https://docs.gunicorn.org/en/latest/settings.html#pidfile
|
||||
pidfile = '/tmp/gunicorn.pid'
|
||||
|
|
Ładowanie…
Reference in New Issue