production.ini 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ###
  2. # app configuration
  3. # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
  4. ###
  5. [app:main]
  6. use = call:frameworkbenchmarks:main
  7. pyramid.reload_templates = false
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.default_locale_name = en
  12. sqlalchemy.url = postgresql://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
  13. ###
  14. # wsgi server configuration
  15. ###
  16. [server:main]
  17. use = egg:gunicorn#main
  18. host = 0.0.0.0
  19. port = 8080
  20. ###
  21. # logging configuration
  22. # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
  23. ###
  24. [loggers]
  25. keys = root, frameworkbenchmarks
  26. [handlers]
  27. keys = console
  28. [formatters]
  29. keys = generic
  30. [logger_root]
  31. level = NOTSET
  32. handlers = console
  33. [logger_frameworkbenchmarks]
  34. level = NOTSET
  35. handlers =
  36. qualname = frameworkbenchmarks
  37. [handler_console]
  38. class = StreamHandler
  39. args = (sys.stderr,)
  40. level = NOTSET
  41. formatter = generic
  42. [formatter_generic]
  43. format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s