gooderp18绿色标准版
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

52 lines
1.6KB

  1. # WSGI Handler sample configuration file.
  2. #
  3. # Change the appropriate settings below, in order to provide the parameters
  4. # that would normally be passed in the command-line.
  5. # (at least conf['addons_path'])
  6. #
  7. # For generic wsgi handlers a global application is defined.
  8. # For uwsgi this should work:
  9. # $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
  10. #
  11. # For gunicorn additional globals need to be defined in the Gunicorn section.
  12. # Then the following command should run:
  13. # $ gunicorn odoo:service.wsgi_server.application -c openerp-wsgi.py
  14. import odoo
  15. #----------------------------------------------------------
  16. # Common
  17. #----------------------------------------------------------
  18. # Equivalent of --load command-line option
  19. odoo.conf.server_wide_modules = ['base', 'web']
  20. conf = odoo.tools.config
  21. # Path to the OpenERP Addons repository (comma-separated for
  22. # multiple locations)
  23. #conf['addons_path'] = './odoo/addons,./addons'
  24. # Optional database config if not using local socket
  25. #conf['db_name'] = 'mycompany'
  26. #conf['db_host'] = 'localhost'
  27. #conf['db_user'] = 'foo'
  28. #conf['db_port'] = 5432
  29. #conf['db_password'] = 'secret'
  30. #----------------------------------------------------------
  31. # Generic WSGI handlers application
  32. #----------------------------------------------------------
  33. application = odoo.http.root
  34. odoo.service.server.load_server_wide_modules()
  35. #----------------------------------------------------------
  36. # Gunicorn
  37. #----------------------------------------------------------
  38. # Standard OpenERP XML-RPC port is 8069
  39. bind = '127.0.0.1:8069'
  40. pidfile = '.gunicorn.pid'
  41. workers = 4
  42. timeout = 240
  43. max_requests = 2000
上海开阖软件有限公司 沪ICP备12045867号-1