2 # WSGI Handler sample configuration file.
4 # Change the appropriate settings below, in order to provide the parameters
5 # that would normally be passed in the command-line.
6 # (at least conf['addons_path'])
8 # For generic wsgi handlers a global application is defined.
9 # For uwsgi this should work:
10 # $ uwsgi --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
12 # For gunicorn additional globals need to be defined in the Gunicorn section.
13 # Then the following command should run:
14 # $ gunicorn openerp:application -c openerp-wsgi.py
18 #----------------------------------------------------------
20 #----------------------------------------------------------
21 # Equivalent of --load command-line option
22 openerp.conf.server_wide_modules = ['web']
23 conf = openerp.tools.config
25 # Path to the OpenERP Addons repository (comma-separated for
27 conf['addons_path'] = '/home/openerp/addons/trunk,/home/openerp/web/trunk/addons'
28 conf['addons_path'] = '/home/wis/stuff/version/openerp/source/addons/6.1,/home/wis/stuff/version/openerp/source/web/6.1/addons'
31 # Optional database config if not using local socket
32 #conf['db_name'] = 'mycompany'
33 #conf['db_host'] = 'localhost'
34 #conf['db_user'] = 'foo'
35 #conf['db_port'] = 5432
36 #conf['db_password'] = 'secret'
38 #----------------------------------------------------------
39 # Generic WSGI handlers application
40 #----------------------------------------------------------
41 application = openerp.service.wsgi_server.application
43 #----------------------------------------------------------
45 #----------------------------------------------------------
46 # Standard OpenERP XML-RPC port is 8069
47 bind = '127.0.0.1:8069'
48 pidfile = '.gunicorn.pid'
53 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: