diff options
Diffstat (limited to 'config/environments/development.rb')
| -rw-r--r-- | config/environments/development.rb | 49 |
1 files changed, 36 insertions, 13 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 85c9a60..56174f8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb | |||
| @@ -1,17 +1,40 @@ | |||
| 1 | # Settings specified here will take precedence over those in config/environment.rb | 1 | require "active_support/core_ext/integer/time" |
| 2 | 2 | ||
| 3 | # In the development environment your application's code is reloaded on | 3 | Rails.application.configure do |
| 4 | # every request. This slows down response time but is perfect for development | 4 | config.enable_reloading = true |
| 5 | # since you don't have to restart the webserver when you make code changes. | 5 | config.eager_load = false |
| 6 | config.cache_classes = false | ||
| 7 | 6 | ||
| 8 | # Log error messages when you accidentally call methods on nil. | 7 | config.consider_all_requests_local = true |
| 9 | config.whiny_nils = true | 8 | config.server_timing = true |
| 10 | 9 | ||
| 11 | # Show full error reports and disable caching | 10 | if Rails.root.join("tmp/caching-dev.txt").exist? |
| 12 | config.action_controller.consider_all_requests_local = true | 11 | config.action_controller.perform_caching = true |
| 13 | config.action_view.debug_rjs = true | 12 | config.action_controller.enable_fragment_cache_logging = true |
| 14 | config.action_controller.perform_caching = false | 13 | config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" } |
| 14 | else | ||
| 15 | config.action_controller.perform_caching = false | ||
| 16 | end | ||
| 15 | 17 | ||
| 16 | # Don't care if the mailer can't send | 18 | config.cache_store = :memory_store |
| 17 | config.action_mailer.raise_delivery_errors = false \ No newline at end of file | 19 | |
| 20 | config.action_mailer.raise_delivery_errors = false | ||
| 21 | config.action_mailer.perform_caching = false | ||
| 22 | config.action_mailer.default_url_options = { host: "localhost", port: 3000 } | ||
| 23 | |||
| 24 | config.active_support.deprecation = :log | ||
| 25 | |||
| 26 | config.active_record.migration_error = :page_load | ||
| 27 | config.active_record.verbose_query_logs = true | ||
| 28 | config.active_record.query_log_tags_enabled = true | ||
| 29 | |||
| 30 | config.active_job.verbose_enqueue_logs = true | ||
| 31 | config.action_dispatch.verbose_redirect_logs = true | ||
| 32 | config.action_view.annotate_rendered_view_with_filenames = true | ||
| 33 | config.action_controller.raise_on_missing_callback_actions = true | ||
| 34 | |||
| 35 | config.hosts.clear | ||
| 36 | config.middleware.delete ExceptionNotification::Rack | ||
| 37 | |||
| 38 | config.assets.debug = false | ||
| 39 | config.assets.digest = true | ||
| 40 | end | ||
