Gracefully handle when Redis is not available
This commit is contained in:
parent
e55473ad68
commit
78c1ab40e2
1 changed files with 7 additions and 2 deletions
|
@ -295,5 +295,10 @@ if Rails.env.test?
|
|||
end
|
||||
|
||||
# Force a refresh of application settings at startup
|
||||
begin
|
||||
ApplicationSetting.expire
|
||||
Ci::ApplicationSetting.expire
|
||||
rescue
|
||||
# Gracefully handle when Redis is not available. For example,
|
||||
# omnibus may fail here during assets:precompile.
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue