2011-08-19 13:02:48 +00:00
|
|
|
import openerp
|
|
|
|
# Standard OpenERP XML-RPC port.
|
|
|
|
bind = '127.0.0.1:8069'
|
2011-08-24 13:22:20 +00:00
|
|
|
pidfile = '.gunicorn.pid'
|
2011-08-19 13:02:48 +00:00
|
|
|
# This is the big TODO: safely use more than a single worker.
|
2011-09-07 14:13:18 +00:00
|
|
|
workers = 1
|
2011-08-24 13:22:20 +00:00
|
|
|
# Some application-wide initialization is needed.
|
|
|
|
on_starting = openerp.wsgi.on_starting
|
|
|
|
when_ready = openerp.wsgi.when_ready
|
|
|
|
timeout = 240 # openerp request-response cycle can be quite long
|
2011-09-12 10:21:47 +00:00
|
|
|
|
|
|
|
# Setting openerp.conf.xxx will be better than setting
|
|
|
|
# openerp.tools.config['xxx']
|
|
|
|
conf = openerp.tools.config
|
|
|
|
conf['addons_path'] = '/home/openerp/repos/addons/trunk-xmlrpc'
|
|
|
|
conf['static_http_document_root'] = '/tmp'
|
|
|
|
#conf['log_level'] = 10 # 10 is DEBUG
|