X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp-wsgi.py;h=90f43ddab2187ff7f038f0df6db3e031a8106e92;hb=739b07ec97c6de3a58ffbc484773db8a1d2758e5;hp=5ab7afc406e7f72a2ce85433c0ce126258e9002d;hpb=7833ed2137053faf8c3d5946fb77c2eed447c64b;p=odoo%2Fodoo.git diff --git a/openerp-wsgi.py b/openerp-wsgi.py index 5ab7afc..90f43dd 100644 --- a/openerp-wsgi.py +++ b/openerp-wsgi.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # WSGI Handler sample configuration file. # # Change the appropriate settings below, in order to provide the parameters @@ -7,26 +6,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'