[IMP] Partners do not follow themselves by default now. Partner profile will move...
[odoo/odoo.git] / openerp-wsgi.py
1 #!/usr/bin/python
2 # WSGI Handler sample configuration file.
3 #
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'])
7 #
8 # For generic wsgi handlers a global application is defined.
9 # For uwsgi this should work:
10 #   $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
11 #
12 # For gunicorn additional globals need to be defined in the Gunicorn section.
13 # Then the following command should run:
14 #   $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py
15
16 import openerp
17
18 #----------------------------------------------------------
19 # Common
20 #----------------------------------------------------------
21 openerp.multi_process = True # Nah!
22
23 # Equivalent of --load command-line option
24 openerp.conf.server_wide_modules = ['web']
25 conf = openerp.tools.config
26
27 # Path to the OpenERP Addons repository (comma-separated for
28 # multiple locations)
29
30 conf['addons_path'] = '../../addons/trunk,../../web/trunk/addons'
31
32 # Optional database config if not using local socket
33 #conf['db_name'] = 'mycompany'
34 #conf['db_host'] = 'localhost'
35 #conf['db_user'] = 'foo'
36 #conf['db_port'] = 5432
37 #conf['db_password'] = 'secret'
38
39 #----------------------------------------------------------
40 # Generic WSGI handlers application
41 #----------------------------------------------------------
42 application = openerp.service.wsgi_server.application
43
44 #----------------------------------------------------------
45 # Gunicorn
46 #----------------------------------------------------------
47 # Standard OpenERP XML-RPC port is 8069
48 bind = '127.0.0.1:8069'
49 pidfile = '.gunicorn.pid'
50 workers = 4
51 timeout = 240
52 max_requests = 2000
53
54 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: