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? ...@@ -295,5 +295,10 @@ if Rails.env.test?
end end
# Force a refresh of application settings at startup # Force a refresh of application settings at startup
ApplicationSetting.expire begin
Ci::ApplicationSetting.expire 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