@@ -6,10 +6,7 @@ Rails.application.configure do
6
6
# Code is not reloaded between requests.
7
7
config.enable_reloading = false
8
8
9
- # Eager load code on boot. This eager loads most of Rails and
10
- # your application in memory, allowing both threaded web servers
11
- # and those relying on copy on write to perform better.
12
- # Rake tasks automatically ignore this option for performance.
9
+ # Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
13
10
config.eager_load = true
14
11
15
12
# Full error reports are disabled and caching is turned on.
@@ -18,10 +15,6 @@ Rails.application.configure do
18
15
config.action_controller.perform_caching = true
19
16
<%- end -%>
20
17
21
- # Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
22
- # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
23
- # config.require_master_key = true
24
-
25
18
# Cache assets for far-future expiry since they are all digest stamped.
26
19
config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
27
20
@@ -32,13 +25,6 @@ Rails.application.configure do
32
25
# Store uploaded files on the local file system (see config/storage.yml for options).
33
26
config.active_storage.service = :local
34
27
35
- <%- end -%>
36
- <%- unless skip_action_cable? -%>
37
- # Mount Action Cable outside main process or domain.
38
- # config.action_cable.mount_path = nil
39
- # config.action_cable.url = "wss://example.com/cable"
40
- # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
41
-
42
28
<%- end -%>
43
29
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
44
30
# Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
@@ -57,25 +43,21 @@ Rails.application.configure do
57
43
config.log_tags = [ :request_id ]
58
44
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
59
45
60
- # "info" includes generic and useful information about system operation, but avoids logging too much
61
- # information to avoid inadvertent exposure of personally identifiable information (PII). If you
62
- # want to log everything, set the level to "debug".
46
+ # Change to "debug" to log everything (including potentially personally-identifiable information!)
63
47
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
64
48
65
- # Use a different cache store in production.
49
+ # Don't log any deprecations.
50
+ config.active_support.report_deprecations = false
51
+
52
+ # Replace the default in-process memory cache store with a durable alternative.
66
53
# config.cache_store = :mem_cache_store
67
54
68
55
<%- unless options[:skip_active_job] -%>
69
- # Use a real queuing backend for Active Job (and separate queues per environment) .
56
+ # Replace the default in-process and non-durable queuing backend for Active Job.
70
57
# config.active_job.queue_adapter = :resque
71
- # config.active_job.queue_name_prefix = "<%= app_name %>_production"
72
58
73
59
<%- end -%>
74
60
<%- unless options.skip_action_mailer? -%>
75
- # Disable caching for Action Mailer templates even if Action Controller
76
- # caching is enabled.
77
- config.action_mailer.perform_caching = false
78
-
79
61
# Ignore bad email addresses and do not raise email delivery errors.
80
62
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
81
63
# config.action_mailer.raise_delivery_errors = false
@@ -96,9 +78,6 @@ Rails.application.configure do
96
78
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
97
79
# the I18n.default_locale when a translation cannot be found).
98
80
config.i18n.fallbacks = true
99
-
100
- # Don't log any deprecations.
101
- config.active_support.report_deprecations = false
102
81
<%- unless options.skip_active_record? -%>
103
82
104
83
# Do not dump schema after migrations.
0 commit comments