Skip to content

Commit

Permalink
Merge pull request #1205 from pulibrary/redis_health_check
Browse files Browse the repository at this point in the history
Fix redis health check.
  • Loading branch information
eliotjordan authored Mar 7, 2024
2 parents 5805cfd + 48af568 commit c49d01d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ gem "honeybadger"
gem "mail_form"
gem "omniauth-cas", "~> 2.0"
gem "omniauth-rails_csrf_protection", "~> 0.1"
gem "redis"
gem "rsolr", "~> 2.3"
gem "sidekiq", "~> 7.1"
gem "simple_form"
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ GEM
rainbow (3.1.1)
rake (13.1.0)
rbtree (0.4.5)
redis (5.0.8)
redis-client (>= 0.17.0)
redis-client (0.18.0)
connection_pool
regexp_parser (2.6.0)
Expand Down Expand Up @@ -712,6 +714,7 @@ DEPENDENCIES
rails (~> 6.1)
rails-controller-testing
rake (>= 13)
redis
rsolr (~> 2.3)
rspec-rails
sidekiq (~> 7.1)
Expand Down
4 changes: 3 additions & 1 deletion config/initializers/health_monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
Rails.application.config.after_initialize do
HealthMonitor.configure do |config|
config.cache
config.redis unless Rails.env.test?
config.redis.configure do |provider_config|
provider_config.url = RedisConfig.url
end unless Rails.env.test?

config.add_custom_provider(SolrStatus)

Expand Down

0 comments on commit c49d01d

Please sign in to comment.