[IMP] wsgi: added exception handling.
[odoo/odoo.git] / gunicorn.conf.py
1 import openerp
2 # Standard OpenERP XML-RPC port.
3 bind = '127.0.0.1:8069'
4 pidfile = '.gunicorn.pid'
5 # This is the big TODO: safely use more than a single worker.
6 workers = 2
7 # Some application-wide initialization is needed.
8 on_starting = openerp.wsgi.on_starting
9 when_ready = openerp.wsgi.when_ready
10 timeout = 240 # openerp request-response cycle can be quite long