Skip to content

Commit 50735a9

Browse files
committed
bin/rails app:update partially accepted
1 parent 7f556d3 commit 50735a9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

config/environments/production.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
2424
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2525

26-
# Compress JavaScripts and CSS.
26+
# Compress JavaScripts and CSS.
2727
config.assets.js_compressor = :terser
2828
# Compress CSS using a preprocessor.
2929
# config.assets.css_compressor = :sass
@@ -53,6 +53,9 @@
5353
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
5454
config.force_ssl = true
5555

56+
# Skip http-to-https redirect for the default health check endpoint.
57+
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
58+
5659
# Log to STDOUT by default
5760
config.logger = ActiveSupport::Logger.new(STDOUT)
5861
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
@@ -73,6 +76,8 @@
7376
# config.active_job.queue_adapter = :resque
7477
# config.active_job.queue_name_prefix = "thing_production"
7578

79+
# Disable caching for Action Mailer templates even if Action Controller
80+
# caching is enabled.
7681
config.action_mailer.perform_caching = false
7782

7883
# Ignore bad email addresses and do not raise email delivery errors.
@@ -100,6 +105,9 @@
100105
# Do not dump schema after migrations.
101106
config.active_record.dump_schema_after_migration = false
102107

108+
# Only use :id for inspections in production.
109+
config.active_record.attributes_for_inspect = [ :id ]
110+
103111
# Enable DNS rebinding protection and other `Host` header attacks.
104112
# config.hosts = [
105113
# "example.com", # Allow requests from example.com

0 commit comments

Comments
 (0)