development.rb 1.9KB

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