Skip to content

Commit 62f9535

Browse files
committed
Update for Rails 7.2: config/environments/production.rb
1 parent f54b7a2 commit 62f9535

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config/environments/production.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
2424
# config.public_file_server.enabled = false
25-
# config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2625

2726
# Compress CSS using a preprocessor.
2827
# config.assets.css_compressor = :sass
@@ -52,6 +51,9 @@
5251
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
5352
config.force_ssl = true
5453

54+
# Skip http-to-https redirect for the default health check endpoint.
55+
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
56+
5557
# Log to STDOUT by default
5658
config.logger = ActiveSupport::Logger.new(STDOUT)
5759
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
@@ -72,6 +74,8 @@
7274
# config.active_job.queue_adapter = :resque
7375
# config.active_job.queue_name_prefix = "coderdojo_jp_production"
7476

77+
# Disable caching for Action Mailer templates even if Action Controller
78+
# caching is enabled.
7579
config.action_mailer.perform_caching = false
7680

7781
# Ignore bad email addresses and do not raise email delivery errors.
@@ -88,6 +92,9 @@
8892
# Do not dump schema after migrations.
8993
config.active_record.dump_schema_after_migration = false
9094

95+
# Only use :id for inspections in production.
96+
config.active_record.attributes_for_inspect = [ :id ]
97+
9198
# Enable DNS rebinding protection and other `Host` header attacks.
9299
# config.hosts = [
93100
# "example.com", # Allow requests from example.com

0 commit comments

Comments
 (0)