DEV: Don't configure rails_failover is db and redis is skipped take 2

DEV: Don’t configure rails_failover is db and redis is skipped take 2

diff --git a/config/application.rb b/config/application.rb
index 1b0db35..a7e6df5 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -20,14 +20,6 @@ require 'action_view/railtie'
 require 'action_mailer/railtie'
 require 'sprockets/railtie'
 
-if !GlobalSetting.skip_db
-  require 'rails_failover/active_record'
-end
-
-if !GlobalSetting.skip_redis
-  require 'rails_failover/redis'
-end
-
 # Plugin related stuff
 require_relative '../lib/plugin_initialization_guard'
 require_relative '../lib/discourse_event'
@@ -51,6 +43,14 @@ if ENV['SKIP_DB_AND_REDIS'] == '1'
   GlobalSetting.skip_redis = true
 end
 
+if !GlobalSetting.skip_db
+  require 'rails_failover/active_record'
+end
+
+if !GlobalSetting.skip_redis
+  require 'rails_failover/redis'
+end
+
 require 'pry-rails' if Rails.env.development?
 
 if defined?(Bundler)

GitHub sha: f38438c6