comparison config/environments/development.rb @ 431:68eb23b52864

Rails 5 \o/
author nanaya <me@myconan.net>
date Fri, 13 May 2016 03:56:07 +0900
parents 10f1eb74e6d7
children d31fe32da7a0
comparison
equal deleted inserted replaced
430:6257da6e1aa1 431:68eb23b52864
1 Zeropaste::Application.configure do 1 Rails.application.configure do
2 # Settings specified here will take precedence over those in config/application.rb. 2 # Settings specified here will take precedence over those in config/application.rb.
3 3
4 # In the development environment your application's code is reloaded on 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 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. 6 # since you don't have to restart the web server when you make code changes.
8 8
9 # Do not eager load code on boot. 9 # Do not eager load code on boot.
10 config.eager_load = false 10 config.eager_load = false
11 11
12 # Show full error reports and disable caching. 12 # Show full error reports and disable caching.
13 config.consider_all_requests_local = true 13 config.consider_all_requests_local = true
14 config.action_controller.perform_caching = false 14 # Enable/disable caching. By default caching is disabled.
15 if Rails.root.join("tmp/caching-dev.txt").exist?
16 config.action_controller.perform_caching = false
17
18 config.cache_store = :memory_store
19 config.public_file_server.headers = {
20 "Cache-Control" => "public, max-age=172800"
21 }
22 else
23 config.action_controller.perform_caching = false
24
25 config.cache_store = :null_store
26 end
15 27
16 # Don't care if the mailer can't send. 28 # Don't care if the mailer can't send.
17 # config.action_mailer.raise_delivery_errors = false 29 # config.action_mailer.raise_delivery_errors = false
18 30
19 # Print deprecation notices to the Rails logger. 31 # Print deprecation notices to the Rails logger.
20 config.active_support.deprecation = :log 32 config.active_support.deprecation = :log
21 33
22 # Raise an error on page load if there are pending migrations 34 # Raise an error on page load if there are pending migrations.
23 config.active_record.migration_error = :page_load 35 config.active_record.migration_error = :page_load
24 36
25 # Debug mode disables concatenation and preprocessing of assets. 37 # Debug mode disables concatenation and preprocessing of assets.
26 # This option may cause significant delays in view rendering with a large 38 # This option may cause significant delays in view rendering with a large
27 # number of complex assets. 39 # number of complex assets.
28 config.assets.debug = true 40 config.assets.debug = true
41
42 # Raises error for missing translations.
43 config.action_view.raise_on_missing_translations = true
44
45 # Use an evented file watcher to asynchronously detect changes in source code
46 # routes, locales, etc. This feature depends on the listen gem.
47 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
29 end 48 end