X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp-wsgi.py;h=9ae18ffc69ebe3f2e44b23cdaa2b41be8db56f83;hb=6e52bad70124507fef3e8e30fe334d486ada61a7;hp=5ab7afc406e7f72a2ce85433c0ce126258e9002d;hpb=7833ed2137053faf8c3d5946fb77c2eed447c64b;p=odoo%2Fodoo.git diff --git a/openerp-wsgi.py b/openerp-wsgi.py index 5ab7afc..9ae18ff 100644 --- a/openerp-wsgi.py +++ b/openerp-wsgi.py @@ -7,26 +7,27 @@ # # For generic wsgi handlers a global application is defined. # For uwsgi this should work: -# $ uwsgi --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py +# $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py # # For gunicorn additional globals need to be defined in the Gunicorn section. # Then the following command should run: -# $ gunicorn openerp:application -c openerp-wsgi.py +# $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py import openerp #---------------------------------------------------------- # Common #---------------------------------------------------------- +openerp.multi_process = True # Nah! + # Equivalent of --load command-line option openerp.conf.server_wide_modules = ['web'] conf = openerp.tools.config # Path to the OpenERP Addons repository (comma-separated for # multiple locations) -conf['addons_path'] = '/home/openerp/addons/trunk,/home/openerp/web/trunk/addons' -conf['addons_path'] = '/home/wis/stuff/version/openerp/source/addons/6.1,/home/wis/stuff/version/openerp/source/web/6.1/addons' +conf['addons_path'] = '../../addons/trunk,../../web/trunk/addons' # Optional database config if not using local socket #conf['db_name'] = 'mycompany'