From c5cb5e8d81ecb5471f3e595e01708d749307305b Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Fri, 20 Jul 2012 10:01:07 +0200 Subject: [PATCH] ajoute un exemple de config gunicorn --- debian/docs | 1 + gunicorn_config.py.example | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gunicorn_config.py.example diff --git a/debian/docs b/debian/docs index 4c499be..abadaef 100644 --- a/debian/docs +++ b/debian/docs @@ -1,5 +1,6 @@ README requirements local_settings.py.example +gunicorn_config.py.example polynum/base/fixtures help diff --git a/gunicorn_config.py.example b/gunicorn_config.py.example new file mode 100644 index 0000000..c2d1e3c --- /dev/null +++ b/gunicorn_config.py.example @@ -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' +