annotate config/environments/development.rb @ 187:a8ffbc623905

Remove unnecessary style type.
author nanaya <me@nanaya.pro>
date Sun, 14 Jul 2019 15:52:07 +0900
parents f67f3ad50270
children 8190fa511e35
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 Rails.application.configure do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
2 # Settings specified here will take precedence over those in config/application.rb.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
3
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 # In the development environment your application's code is reloaded on
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 # every request. This slows down response time but is perfect for development
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
6 # since you don't have to restart the web server when you make code changes.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 config.cache_classes = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
8
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
9 # Do not eager load code on boot.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
10 config.eager_load = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
11
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
12 # Show full error reports.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
13 config.consider_all_requests_local = true
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
14
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
15 # Enable/disable caching. By default caching is disabled.
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
16 # Run rails dev:cache to toggle caching.
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
17 if Rails.root.join('tmp', 'caching-dev.txt').exist?
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
18 config.action_controller.perform_caching = true
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
19 config.action_controller.enable_fragment_cache_logging = true
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
20
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
21 config.cache_store = :memory_store
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
22 config.public_file_server.headers = {
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
23 'Cache-Control' => "public, max-age=#{2.days.to_i}"
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
24 }
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
25 else
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
26 config.action_controller.perform_caching = false
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
27
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
28 config.cache_store = :null_store
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
29 end
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
30
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
31 # Print deprecation notices to the Rails logger.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
32 config.active_support.deprecation = :log
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
33
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
34
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 72
diff changeset
35 # Raises error for missing translations.
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
36 # config.action_view.raise_on_missing_translations = true
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
37
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
38 # Use an evented file watcher to asynchronously detect changes in source code,
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
39 # routes, locales, etc. This feature depends on the listen gem.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
40 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
41 end