[MERGE] lp:912793 (account/demo: fix last day of February period)
[odoo/odoo.git] / gunicorn.conf.py
index aaf48c7..7f23553 100644 (file)
@@ -22,11 +22,15 @@ 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
+post_request = openerp.wsgi.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 +39,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 +56,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: