X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=gunicorn.conf.py;h=0f1d93a8638532beb0b13b858c91c643664451e4;hb=d0781ecc2696964736304ec1575242603e417580;hp=427aab6f0261330824aa7943868caa9343e0885f;hpb=0ae195798ba66090cd9ccffbc58a1651e431d3dc;p=odoo%2Fodoo.git diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 427aab6..0f1d93a 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -21,10 +21,11 @@ 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 = 10 +workers = 4 # Some application-wide initialization is needed. 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 @@ -34,8 +35,6 @@ timeout = 240 max_requests = 2000 -#accesslog = '/tmp/blah.txt' - # Equivalent of --load command-line option openerp.conf.server_wide_modules = ['web'] @@ -44,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,/home/thu/repos/web/trunk/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'