X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=gunicorn.conf.py;h=2400aa9fccd255f58932262d8c16629f9f9254e8;hb=ed89719f40e1bf2131b1c56de45745fc1a4fb7ab;hp=05feb71ada83b33564603ef9dc4baafd3a07b5d7;hpb=09347af434e8ebe1ad828c44703ec8d8ab6870d8;p=odoo%2Fodoo.git diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 05feb71..2400aa9 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,11 +1,15 @@ # Gunicorn sample configuration file. # See http://gunicorn.org/configure.html for more details. # -# To run OpenERP via Gunicorn, change the appropriate +# To run the OpenERP server via Gunicorn, change the appropriate # settings below, in order to provide the parameters that # would normally be passed in the command-line, # (at least `bind` and `conf['addons_path']`), then execute: -# $ gunicorn openerp:wsgi.application -c gunicorn.conf.py +# $ gunicorn openerp:wsgi.core.application -c gunicorn.conf.py +# or if you want to run it behind a reverse proxy, add the line +# import openerp.wsgi.proxied +# in this file and execute: +# $ gunicorn openerp:wsgi.proxied.application -c gunicorn.conf.py import openerp @@ -17,12 +21,12 @@ pidfile = '.gunicorn.pid' # Gunicorn recommends 2-4 x number_of_cpu_cores, but # you'll want to vary this a bit to find the best for your # particular work load. -workers = 1 +workers = 4 # Some application-wide initialization is needed. -on_starting = openerp.wsgi.on_starting -when_ready = openerp.wsgi.when_ready -pre_request = openerp.wsgi.pre_request +on_starting = openerp.wsgi.core.on_starting +pre_request = openerp.wsgi.core.pre_request +post_request = openerp.wsgi.core.post_request # openerp request-response cycle can be quite long for # big reports for example @@ -38,7 +42,7 @@ conf = openerp.tools.config # Path to the OpenERP Addons repository (comma-separated for # multiple locations) -conf['addons_path'] = '/home/thu/repos/addons/trunk,/home/thu/repos/web/trunk/addons,/home/thu/repos/server/trunk-limits/openerp/tests/addons' +conf['addons_path'] = '/home/openerp/addons/trunk,/home/openerp/web/trunk/addons' # Optional database config if not using local socket #conf['db_name'] = 'mycompany'