mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
DEV: Require rails_failover
before global settings.
This commit is contained in:
parent
f7f436e536
commit
2f03a879f9
2 changed files with 4 additions and 2 deletions
|
@ -6,8 +6,6 @@ if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
|||
end
|
||||
|
||||
if ENV['RAILS_FAILOVER']
|
||||
require 'rails_failover'
|
||||
|
||||
message_bus_keepalive_interval = MessageBus.keepalive_interval
|
||||
|
||||
RailsFailover::Redis.register_master_up_callback do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue