Nessuna descrizione http://j1x-huginn.herokuapp.com

development.rb 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. $stdout.sync = true
  2. Huginn::Application.configure do
  3. config.middleware.insert_after ActionDispatch::Static, Rack::LiveReload
  4. # Settings specified here will take precedence over those in config/application.rb
  5. # In the development environment your application's code is reloaded on
  6. # every request. This slows down response time but is perfect for development
  7. # since you don't have to restart the web server when you make code changes.
  8. config.cache_classes = false
  9. # Eager load code on boot. This eager loads most of Rails and
  10. # your application in memory, allowing both threaded web servers
  11. # and those relying on copy on write to perform better.
  12. # Rake tasks automatically ignore this option for performance.
  13. config.eager_load = false
  14. # Show full error reports.
  15. config.consider_all_requests_local = true
  16. # Enable/disable caching. By default caching is disabled.
  17. if Rails.root.join('tmp/caching-dev.txt').exist?
  18. config.action_controller.perform_caching = true
  19. config.cache_store = :memory_store
  20. config.public_file_server.headers = {
  21. 'Cache-Control' => 'public, max-age=172800'
  22. }
  23. else
  24. config.action_controller.perform_caching = false
  25. config.cache_store = :null_store
  26. end
  27. # Print deprecation notices to the Rails logger
  28. config.active_support.deprecation = :log
  29. # Only use best-standards-support built into browsers
  30. config.action_dispatch.best_standards_support = :builtin
  31. # Raise exception for unpermitted parameters
  32. config.action_controller.action_on_unpermitted_parameters = :raise
  33. # Raise an error on page load if there are pending migrations.
  34. config.active_record.migration_error = :page_load
  35. # Expands the lines which load the assets
  36. config.assets.debug = true
  37. # Suppress logger output for asset requests.
  38. config.assets.quiet = true
  39. config.action_mailer.default_url_options = { :host => ENV['DOMAIN'] }
  40. config.action_mailer.asset_host = ENV['DOMAIN']
  41. config.action_mailer.raise_delivery_errors = true
  42. if ENV['SEND_EMAIL_IN_DEVELOPMENT'] == 'true'
  43. config.action_mailer.delivery_method = :smtp
  44. else
  45. config.action_mailer.delivery_method = :letter_opener_web
  46. end
  47. config.action_mailer.perform_caching = false
  48. # smtp_settings moved to config/initializers/action_mailer.rb
  49. # Use an evented file watcher to asynchronously detect changes in source code,
  50. # routes, locales, etc. This feature depends on the listen gem.
  51. config.file_watcher = ActiveSupport::EventedFileUpdateChecker
  52. end