development.rb 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 and disable caching
  15. config.consider_all_requests_local = true
  16. config.action_controller.perform_caching = false
  17. # Print deprecation notices to the Rails logger
  18. config.active_support.deprecation = :log
  19. # Only use best-standards-support built into browsers
  20. config.action_dispatch.best_standards_support = :builtin
  21. # Raise exception on mass assignment protection for Active Record models
  22. config.active_record.mass_assignment_sanitizer = :strict
  23. # Raise an error on page load if there are pending migrations.
  24. config.active_record.migration_error = :page_load
  25. # Expands the lines which load the assets
  26. config.assets.debug = true
  27. # Asset digests allow you to set far-future HTTP expiration dates on all assets,
  28. # yet still be able to expire them through the digest params.
  29. config.assets.digest = true
  30. # Adds additional error checking when serving assets at runtime.
  31. # Checks for improperly declared sprockets dependencies.
  32. # Raises helpful error messages.
  33. config.assets.raise_runtime_errors = true
  34. config.action_mailer.default_url_options = { :host => ENV['DOMAIN'] }
  35. config.action_mailer.asset_host = ENV['DOMAIN']
  36. config.action_mailer.raise_delivery_errors = true
  37. if ENV['SEND_EMAIL_IN_DEVELOPMENT'] == 'true'
  38. config.action_mailer.delivery_method = :smtp
  39. else
  40. config.action_mailer.delivery_method = :letter_opener_web
  41. end
  42. # smtp_settings moved to config/initializers/action_mailer.rb
  43. end