[IMP] inter-process signaling, proof-of-concept.
[odoo/odoo.git] / gunicorn.conf.py
1 # Gunicorn sample configuration file.
2 # See http://gunicorn.org/configure.html for more details.
3 #
4 # To run OpenERP via Gunicorn, change the appropriate
5 # settings below, in order to provide the parameters that
6 # would normally be passed in the command-line,
7 # (at least `bind` and `conf['addons_path']`), then execute:
8 #  $ gunicorn openerp:wsgi.application -c gunicorn.conf.py
9
10 import openerp
11
12 # Standard OpenERP XML-RPC port is 8069
13 bind = '127.0.0.1:8069'
14
15 pidfile = '.gunicorn.pid'
16
17 # Gunicorn recommends 2-4 x number_of_cpu_cores, but
18 # you'll want to vary this a bit to find the best for your
19 # particular work load.
20 workers = 1
21
22 # Some application-wide initialization is needed.
23 on_starting = openerp.wsgi.on_starting
24 when_ready = openerp.wsgi.when_ready
25 pre_request = openerp.wsgi.pre_request
26 post_request = openerp.wsgi.post_request
27
28 # openerp request-response cycle can be quite long for
29 # big reports for example
30 timeout = 240
31
32 max_requests = 2000
33
34 #accesslog = '/tmp/blah.txt'
35
36 # Equivalent of --load command-line option
37 openerp.conf.server_wide_modules = ['web']
38
39 # internal TODO: use openerp.conf.xxx when available
40 conf = openerp.tools.config
41
42 # Path to the OpenERP Addons repository (comma-separated for
43 # multiple locations)
44 conf['addons_path'] = '/home/thu/repos/addons/trunk,/home/thu/repos/web/trunk/addons'
45
46 # Optional database config if not using local socket
47 #conf['db_name'] = 'mycompany'
48 #conf['db_host'] = 'localhost'
49 #conf['db_user'] = 'foo'
50 #conf['db_port'] = 5432
51 #conf['db_password'] = 'secret'
52
53 # OpenERP Log Level
54 # DEBUG=10, DEBUG_RPC=8, DEBUG_RPC_ANSWER=6, DEBUG_SQL=5, INFO=20,
55 # WARNING=30, ERROR=40, CRITICAL=50
56 # conf['log_level'] = 20
57
58 # If --static-http-enable is used, path for the static web directory
59 #conf['static_http_document_root'] = '/var/www'
60
61 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: