Commit 78c1ab40 authored by Stan Hu's avatar Stan Hu

Gracefully handle when Redis is not available

parent e55473ad
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment