Skip to content

Commit f9767bd

Browse files
committed
app:update config/environments/production.rb
1 parent 29b52bc commit f9767bd

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

config/environments/production.rb

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
# Mount Action Cable outside main process or domain.
4444
# config.action_cable.mount_path = nil
45-
# config.action_cable.url = 'wss://example.com/cable'
46-
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
45+
# config.action_cable.url = "wss://example.com/cable"
46+
# config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
4747

4848
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
4949
config.force_ssl = true
@@ -72,14 +72,8 @@
7272
# the I18n.default_locale when a translation cannot be found).
7373
config.i18n.fallbacks = true
7474

75-
# Send deprecation notices to registered listeners.
76-
config.active_support.deprecation = :notify
77-
78-
# Log disallowed deprecations.
79-
config.active_support.disallowed_deprecation = :log
80-
81-
# Tell Active Support which deprecation messages to disallow.
82-
config.active_support.disallowed_deprecation_warnings = []
75+
# Don't log any deprecations.
76+
config.active_support.report_deprecations = false
8377

8478
# Use default logging formatter so that PID and timestamp are not suppressed.
8579
config.log_formatter = ::Logger::Formatter.new
@@ -97,27 +91,6 @@
9791
# Do not dump schema after migrations.
9892
config.active_record.dump_schema_after_migration = false
9993

100-
# Inserts middleware to perform automatic connection switching.
101-
# The `database_selector` hash is used to pass options to the DatabaseSelector
102-
# middleware. The `delay` is used to determine how long to wait after a write
103-
# to send a subsequent read to the primary.
104-
#
105-
# The `database_resolver` class is used by the middleware to determine which
106-
# database is appropriate to use based on the time delay.
107-
#
108-
# The `database_resolver_context` class is used by the middleware to set
109-
# timestamps for the last write to the primary. The resolver uses the context
110-
# class timestamps to determine how long to wait before reading from the
111-
# replica.
112-
#
113-
# By default Rails will store a last write timestamp in the session. The
114-
# DatabaseSelector middleware is designed as such you can define your own
115-
# strategy for connection switching and pass that into the middleware through
116-
# these configuration options.
117-
# config.active_record.database_selector = { delay: 2.seconds }
118-
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
119-
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
120-
12194
# Redirect if not in correct domains
12295
config.middleware.use Rack::HostRedirect, {
12396
%w(coderdojo-japan.herokuapp.com www.coderdojo.jp) => 'coderdojo.jp'

0 commit comments

Comments
 (0)