X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=gunicorn.conf.py;h=0f1d93a8638532beb0b13b858c91c643664451e4;hb=2a7d95ac75ccb5b8161118d4ec48b3e3102001b0;hp=aaf48c7fd3a99afc0c03b85d9c6efa525371e334;hpb=5089a678cbcfb2ae700fedd675447af9c85e5cec;p=odoo%2Fodoo.git diff --git a/gunicorn.conf.py b/gunicorn.conf.py index aaf48c7..0f1d93a 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 @@ -20,13 +24,17 @@ pidfile = '.gunicorn.pid' workers = 4 # Some application-wide initialization is needed. -on_starting = openerp.wsgi.on_starting -when_ready = openerp.wsgi.when_ready +on_starting = openerp.wsgi.core.on_starting +when_ready = openerp.wsgi.core.when_ready +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 timeout = 240 +max_requests = 2000 + # Equivalent of --load command-line option openerp.conf.server_wide_modules = ['web'] @@ -35,7 +43,7 @@ conf = openerp.tools.config # Path to the OpenERP Addons repository (comma-separated for # multiple locations) -conf['addons_path'] = '/home/thu/repos/addons/trunk-import-hook,/home/thu/repos/web/trunk-import-hook/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' @@ -52,5 +60,4 @@ conf['addons_path'] = '/home/thu/repos/addons/trunk-import-hook,/home/thu/repos/ # If --static-http-enable is used, path for the static web directory #conf['static_http_document_root'] = '/var/www' - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: