ajoute un exemple de config gunicorn

This commit is contained in:
Thomas NOËL 2012-07-20 10:01:07 +02:00
parent 3fbb79f267
commit c5cb5e8d81
2 changed files with 18 additions and 0 deletions

1
debian/docs vendored
View File

@ -1,5 +1,6 @@
README
requirements
local_settings.py.example
gunicorn_config.py.example
polynum/base/fixtures
help

View File

@ -0,0 +1,17 @@
# use Python syntax !
#
# see : http://gunicorn.org/configure.html
daemon = True
bind = '127.0.0.1:3000'
import multiprocessing
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = 'sync'
max_requests = 1000
accesslog = None # '/var/log/polynum/gunicorn-access.log'
errorlog = None # '/var/log/polynum/gunicorn-error.log'
loglevel = 'info' # 'debug'