annotate config/environments/development.rb @ 456:caac9bc885b4

More font size
author nanaya <me@nanaya.pro>
date Tue, 14 Nov 2017 22:49:16 +0900
parents d31fe32da7a0
children 07d6c6639adf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
1 Rails.application.configure do
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
2 # Settings specified here will take precedence over those in config/application.rb.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 # In the development environment your application's code is reloaded on
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 # every request. This slows down response time but is perfect for development
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 # since you don't have to restart the web server when you make code changes.
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7 config.cache_classes = false
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
9 # Do not eager load code on boot.
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
10 config.eager_load = false
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
11
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
12 # Show full error reports and disable caching.
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
13 config.consider_all_requests_local = true
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
14 # Enable/disable caching. By default caching is disabled.
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
15 if Rails.root.join("tmp/caching-dev.txt").exist?
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
16 config.action_controller.perform_caching = false
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
17
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
18 config.cache_store = :memory_store
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
19 config.public_file_server.headers = {
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
20 "Cache-Control" => "public, max-age=172800"
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
21 }
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
22 else
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
23 config.action_controller.perform_caching = false
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
24
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
25 config.cache_store = :null_store
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
26 end
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
27
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
28 # Don't care if the mailer can't send.
205
10f1eb74e6d7 We have no activemailer.
Edho Arief <edho@myconan.net>
parents: 202
diff changeset
29 # config.action_mailer.raise_delivery_errors = false
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
30
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
31 # Print deprecation notices to the Rails logger.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
32 config.active_support.deprecation = :log
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
33
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
34 # Raise an error on page load if there are pending migrations.
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
35 config.active_record.migration_error = :page_load
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
36
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
37 # Debug mode disables concatenation and preprocessing of assets.
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
38 # This option may cause significant delays in view rendering with a large
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
39 # number of complex assets.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
40 config.assets.debug = true
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
41
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
42 # Raises error for missing translations.
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
43 config.action_view.raise_on_missing_translations = true
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
44
437
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 431
diff changeset
45 # Suppress logger output for asset requests.
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 431
diff changeset
46 config.assets.quiet = true
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 431
diff changeset
47
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
48 # Use an evented file watcher to asynchronously detect changes in source code
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
49 # routes, locales, etc. This feature depends on the listen gem.
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 205
diff changeset
50 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
51 end