Skip to content

Commit bc41d91

Browse files
committed
linting
1 parent e522286 commit bc41d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/environments/production.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
config.active_support.disallowed_deprecation_warnings = []
9393

9494
# Use default logging formatter so that PID and timestamp are not suppressed.
95-
config.log_formatter = ::Logger::Formatter.new
95+
config.log_formatter = Logger::Formatter.new
9696

9797
# Use a different logger for distributed setups.
9898
# require "syslog/logger"
@@ -127,6 +127,6 @@
127127

128128
# Action Cable endpoint configuration
129129

130-
config.action_cable.url = "wss://#{ENV['PRODUCTION_HOST']}/cable"
131-
config.action_cable.allowed_request_origins = ["https://#{ENV['PRODUCTION_HOST']}"]
130+
config.action_cable.url = "wss://#{ENV.fetch('PRODUCTION_HOST', nil)}/cable"
131+
config.action_cable.allowed_request_origins = ["https://#{ENV.fetch('PRODUCTION_HOST', nil)}"]
132132
end

0 commit comments

Comments
 (0)