mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
DEV: Require rails_failover
before global settings.
This commit is contained in:
parent
f7f436e536
commit
2f03a879f9
@ -27,6 +27,10 @@ require_relative '../lib/discourse_plugin_registry'
|
||||
|
||||
require_relative '../lib/plugin_gem'
|
||||
|
||||
if ENV['RAILS_FAILOVER']
|
||||
require 'rails_failover'
|
||||
end
|
||||
|
||||
# Global config
|
||||
require_relative '../app/models/global_setting'
|
||||
GlobalSetting.configure!
|
||||
|
@ -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…
x
Reference in New Issue
Block a user