Guest User

production.ini

a guest
Jun 25th, 2012
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # example22 - Pylons development environment configuration
  3. #
  4. # The %(here)s variable will be replaced with the parent directory of this file
  5. #
  6. # This file is for deployment specific config options -- other configuration
  7. # that is always required for the app is done in the config directory,
  8. # and generally should not be modified by end users.
  9.  
  10. [DEFAULT]
  11. debug = true
  12. # Uncomment and replace with the address which should receive any error reports
  13. #email_to = [email protected]
  14. smtp_server = localhost
  15. error_email_from = paste@localhost
  16.  
  17. [server:main]
  18. use = egg:Paste#http
  19. host = 127.0.0.1
  20. port = 8080
  21.  
  22. [sa_auth]
  23. cookie_secret = cb047a47-176c-4df0-a587-24ab3b8674e8
  24.  
  25. [app:main]
  26. use = egg:example22
  27. full_stack = true
  28. #lang = ru
  29. cache_dir = %(here)s/data
  30. beaker.session.key = example22
  31. beaker.session.secret = cb047a47-176c-4df0-a587-24ab3b8674e8
  32.  
  33. #By default session is store in cookies to avoid the overhead
  34. #of having to manage a session storage. On production you might
  35. #want to switch to a better session storage.
  36. beaker.session.type = cookie
  37. beaker.session.validate_key = cb047a47-176c-4df0-a587-24ab3b8674e8
  38.  
  39. # Disable template autoreload to boost performances in production
  40. # WARNING: if you want to deploy your application using a zipped egg
  41. # (ie: if your application's setup.py defines zip-safe=True, then you
  42. # MUST put "false" for the production environment because there will
  43. # be no disk and real files to compare time with.
  44. #auto_reload_templates = false
  45.  
  46. # If you'd like to fine-tune the individual locations of the cache data dirs
  47. # for the Cache data, or the Session saves, un-comment the desired settings
  48. # here:
  49. #beaker.cache.data_dir = %(here)s/data/cache
  50. #beaker.session.data_dir = %(here)s/data/sessions
  51.  
  52. # pick the form for your database
  53. # %(here) may include a ':' character on Windows environments; this can
  54. # invalidate the URI when specifying a SQLite db via path name
  55. # sqlalchemy.url=postgres://username:password@hostname:port/databasename
  56. # sqlalchemy.url=mysql://username:password@hostname:port/databasename
  57.  
  58.  
  59. # If you have sqlite, here's a simple default to get you started
  60. # in development
  61.  
  62. sqlalchemy.url = sqlite:///%(here)s/devdata.db
  63. #echo shouldn't be used together with the logging module.
  64. sqlalchemy.echo = false
  65. sqlalchemy.echo_pool = false
  66. sqlalchemy.pool_recycle = 3600
  67.  
  68. # This line ensures that Genshi will render xhtml when sending the
  69. # output. Change to html or xml, as desired.
  70. templating.genshi.method = xhtml
  71. templating.genshi.doctype = html5
  72.  
  73. # the compiled template dir is a directory that must be readable by your
  74. # webserver. It will be used to store the resulting templates once compiled
  75. # by the TemplateLookup system.
  76. # During development you generally don't need this option since paste's HTTP
  77. # server will have access to you development directories, but in production
  78. # you'll most certainly want to have apache or nginx to write in a directory
  79. # that does not contain any source code in any form for obvious security reasons.
  80. templating.mako.compiled_templates_dir = %(here)s/data/templates
  81.  
  82. # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
  83. # Debug mode will enable the interactive debugging tool, allowing ANYONE to
  84. # execute malicious code after an exception is raised.
  85. #set debug = false
  86.  
  87. # Logging configuration
  88. # Add additional loggers, handlers, formatters here
  89. # Uses python's logging config file format
  90. # http://docs.python.org/lib/logging-config-fileformat.html
  91.  
  92. #turn this setting to "min" if you would like tw to produce minified
  93. #javascript files (if your library supports that)
  94. toscawidgets.framework.resource_variant=debug
  95.  
  96. [loggers]
  97. keys = root, example22, sqlalchemy, auth
  98.  
  99. [handlers]
  100. keys = console
  101.  
  102. [formatters]
  103. keys = generic
  104.  
  105. # If you create additional loggers, add them as a key to [loggers]
  106. [logger_root]
  107. level = INFO
  108. handlers = console
  109.  
  110. [logger_example22]
  111. level = DEBUG
  112. handlers =
  113. qualname = example22
  114.  
  115. [logger_sqlalchemy]
  116. level = INFO
  117. handlers =
  118. qualname = sqlalchemy.engine
  119. # "level = INFO" logs SQL queries.
  120. # "level = DEBUG" logs SQL queries and results.
  121. # "level = WARN" logs neither.  (Recommended for production systems.)
  122.  
  123. # A logger for authentication, identification and authorization
  124. # this is repoze.who:
  125. [logger_auth]
  126. level = WARN
  127. handlers =
  128. qualname = auth
  129.  
  130. # If you create additional handlers, add them as a key to [handlers]
  131. [handler_console]
  132. class = StreamHandler
  133. args = (sys.stderr,)
  134. level = NOTSET
  135. formatter = generic
  136.  
  137. # If you create additional formatters, add them as a key to [formatters]
  138. [formatter_generic]
  139. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  140. datefmt = %H:%M:%S
  141.  
  142. [uwsgi]
  143. plugins = python
  144. #socket = 127.0.0.1:8080
  145. socket = /tmp/uwsgi_vhosts.sock
  146.  
  147. gid = www-data
  148. harakiri = 20
  149. #limit-as = 128
  150. #limit-post = 65536
  151. #listen = 256
  152. #log-slow = true
  153. logdate = true
  154. master = true
  155. #max-requests = 1000
  156. #memory-report = true
  157. no-orphans = true
  158. paste = config:/home/web/projects/example22/production.ini
  159. pidfile = /tmp/uwsgi.pid
  160. #post-buffering = 8192
  161. processes = 4
  162. #reload-on-as = 128
  163. #reload-on-rss = 96
  164. uid = www-data
  165. vhost = true
  166. virtualenv = /home/web/tg2unsenv
Advertisement
Add Comment
Please, Sign In to add comment