1 # Gunicorn sample configuration file.
2 # See http://gunicorn.org/configure.html for more details.
4 # To run the OpenERP server 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.core.application -c gunicorn.conf.py
9 # or if you want to run it behind a reverse proxy, add the line
10 # import openerp.wsgi.proxied
11 # in this file and execute:
12 # $ gunicorn openerp:wsgi.proxied.application -c gunicorn.conf.py
16 # Standard OpenERP XML-RPC port is 8069
17 bind = '127.0.0.1:8069'
19 pidfile = '.gunicorn.pid'
21 # Gunicorn recommends 2-4 x number_of_cpu_cores, but
22 # you'll want to vary this a bit to find the best for your
23 # particular work load.
26 # Some application-wide initialization is needed.
27 on_starting = openerp.wsgi.core.on_starting
28 when_ready = openerp.wsgi.core.when_ready
29 pre_request = openerp.wsgi.core.pre_request
30 post_request = openerp.wsgi.core.post_request
32 # openerp request-response cycle can be quite long for
33 # big reports for example
38 # Equivalent of --load command-line option
39 openerp.conf.server_wide_modules = ['web']
41 # internal TODO: use openerp.conf.xxx when available
42 conf = openerp.tools.config
44 # Path to the OpenERP Addons repository (comma-separated for
46 conf['addons_path'] = '/home/openerp/addons/trunk,/home/openerp/web/trunk/addons'
48 # Optional database config if not using local socket
49 #conf['db_name'] = 'mycompany'
50 #conf['db_host'] = 'localhost'
51 #conf['db_user'] = 'foo'
52 #conf['db_port'] = 5432
53 #conf['db_password'] = 'secret'
56 # DEBUG=10, DEBUG_RPC=8, DEBUG_RPC_ANSWER=6, DEBUG_SQL=5, INFO=20,
57 # WARNING=30, ERROR=40, CRITICAL=50
58 # conf['log_level'] = 20
60 # If --static-http-enable is used, path for the static web directory
61 #conf['static_http_document_root'] = '/var/www'
63 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: