development.rb 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Rails.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. # Do not eager load code on boot.
  8. config.eager_load = false
  9. # Show full error reports and disable caching.
  10. config.consider_all_requests_local = true
  11. config.action_controller.perform_caching = false
  12. # Don't care if the mailer can't send.
  13. config.action_mailer.raise_delivery_errors = false
  14. # Print deprecation notices to the Rails logger.
  15. config.active_support.deprecation = :log
  16. # Raise an error on page load if there are pending migrations.
  17. config.active_record.migration_error = :page_load
  18. # Do not compress assets
  19. config.assets.compress = false
  20. # Debug mode disables concatenation and preprocessing of assets.
  21. # This option may cause significant delays in view rendering with a large
  22. # number of complex assets.
  23. #config.assets.debug = true
  24. config.assets.debug = false
  25. # Automatically inject JavaScript needed for LiveReload
  26. if ENV['RAKE_LIVE_RELOAD'].present?
  27. require 'rack-livereload'
  28. config.middleware.insert_after(
  29. ActionDispatch::Static,
  30. Rack::LiveReload,
  31. no_swf: true,
  32. min_delay: 500, # default 1000
  33. max_delay: 10_000, # default 60_000
  34. live_reload_port: 35_738
  35. )
  36. end
  37. # Asset digests allow you to set far-future HTTP expiration dates on all assets,
  38. # yet still be able to expire them through the digest params.
  39. config.assets.digest = false
  40. # Adds additional error checking when serving assets at runtime.
  41. # Checks for improperly declared sprockets dependencies.
  42. # Raises helpful error messages.
  43. config.assets.raise_runtime_errors = true
  44. # Raises error for missing translations
  45. # config.action_view.raise_on_missing_translations = true
  46. end