development.rb 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Huginn::Application.configure do
  2. # Settings specified here will take precedence over those in config/application.rb
  3. # In the development environment your application's code is reloaded on
  4. # every request. This slows down response time but is perfect for development
  5. # since you don't have to restart the web server when you make code changes.
  6. config.cache_classes = false
  7. # Log error messages when you accidentally call methods on nil.
  8. config.whiny_nils = true
  9. # Show full error reports and disable caching
  10. config.consider_all_requests_local = true
  11. config.action_controller.perform_caching = false
  12. # Print deprecation notices to the Rails logger
  13. config.active_support.deprecation = :log
  14. # Only use best-standards-support built into browsers
  15. config.action_dispatch.best_standards_support = :builtin
  16. # Raise exception on mass assignment protection for Active Record models
  17. config.active_record.mass_assignment_sanitizer = :strict
  18. # Log the query plan for queries taking more than this (works
  19. # with SQLite, MySQL, and PostgreSQL)
  20. config.active_record.auto_explain_threshold_in_seconds = 0.5
  21. # Do not compress assets
  22. config.assets.compress = false
  23. # Expands the lines which load the assets
  24. config.assets.debug = true
  25. config.action_mailer.default_url_options = { :host => ENV['DOMAIN'] }
  26. config.action_mailer.asset_host = ENV['DOMAIN']
  27. config.action_mailer.perform_deliveries = false # Enable when testing!
  28. config.action_mailer.raise_delivery_errors = true
  29. config.action_mailer.delivery_method = :smtp
  30. config.action_mailer.smtp_settings = {
  31. address: ENV['SMTP_SERVER'] || 'smtp.gmail.com',
  32. port: ENV['SMTP_PORT'] || 587,
  33. domain: ENV['SMTP_DOMAIN'],
  34. authentication: ENV['SMTP_AUTHENTICATION'] || 'plain',
  35. enable_starttls_auto: ENV['SMTP_ENABLE_STARTTLS_AUTO'] == 'true' ? true : false,
  36. user_name: ENV['SMTP_USER_NAME'],
  37. password: ENV['SMTP_PASSWORD']
  38. }
  39. end