comparison config/environments/development.rb @ 185:f67f3ad50270

Update to latest rails and gems
author nanaya <me@nanaya.pro>
date Sun, 14 Jul 2019 15:38:04 +0900
parents 257910c60eb3
children 8190fa511e35
comparison
equal deleted inserted replaced
184:a35c2733552f 185:f67f3ad50270
11 11
12 # Show full error reports. 12 # Show full error reports.
13 config.consider_all_requests_local = true 13 config.consider_all_requests_local = true
14 14
15 # Enable/disable caching. By default caching is disabled. 15 # Enable/disable caching. By default caching is disabled.
16 if Rails.root.join("tmp/caching-dev.txt").exist? 16 # Run rails dev:cache to toggle caching.
17 if Rails.root.join('tmp', 'caching-dev.txt').exist?
17 config.action_controller.perform_caching = true 18 config.action_controller.perform_caching = true
19 config.action_controller.enable_fragment_cache_logging = true
18 20
19 # config.cache_store = :memory_store 21 config.cache_store = :memory_store
20 config.public_file_server.headers = { 22 config.public_file_server.headers = {
21 "Cache-Control" => "public, max-age=172800" 23 'Cache-Control' => "public, max-age=#{2.days.to_i}"
22 } 24 }
23 else 25 else
24 config.action_controller.perform_caching = false 26 config.action_controller.perform_caching = false
25 27
26 # config.cache_store = :null_store 28 config.cache_store = :null_store
27 end 29 end
28
29 # Don't care if the mailer can't send.
30 # config.action_mailer.raise_delivery_errors = false
31
32 # config.action_mailer.perform_caching = false
33 30
34 # Print deprecation notices to the Rails logger. 31 # Print deprecation notices to the Rails logger.
35 config.active_support.deprecation = :log 32 config.active_support.deprecation = :log
36 33
37 # Raise an error on page load if there are pending migrations.
38 # config.active_record.migration_error = :page_load
39 34
40 # Debug mode disables concatenation and preprocessing of assets. 35 # Raises error for missing translations.
41 # This option may cause significant delays in view rendering with a large
42 # number of complex assets.
43 # config.assets.debug = true
44
45 # Raises error for missing translations
46 # config.action_view.raise_on_missing_translations = true 36 # config.action_view.raise_on_missing_translations = true
47 37
48 # Use an evented file watcher to asynchronously detect changes in source code, 38 # Use an evented file watcher to asynchronously detect changes in source code,
49 # routes, locales, etc. This feature depends on the listen gem. 39 # routes, locales, etc. This feature depends on the listen gem.
50 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker 40 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker