Gracefully handle when Redis is not available

This commit is contained in:
Stan Hu 2015-11-26 07:55:21 -08:00
parent e55473ad68
commit 78c1ab40e2

View file

@ -295,5 +295,10 @@ if Rails.env.test?
end
# Force a refresh of application settings at startup
ApplicationSetting.expire
Ci::ApplicationSetting.expire
begin
ApplicationSetting.expire
Ci::ApplicationSetting.expire
rescue
# Gracefully handle when Redis is not available. For example,
# omnibus may fail here during assets:precompile.
end