Skip to content

Commit

Permalink
Update rails-health-monitor to use built in solr check (#668)
Browse files Browse the repository at this point in the history
fixes #662
  • Loading branch information
carolyncole authored Aug 7, 2024
1 parent c83c76c commit 23c670c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 24 deletions.
20 changes: 10 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ GEM
activesupport (>= 6.1)
hashdiff (1.1.0)
hashie (5.0.0)
health-monitor-rails (12.1.0)
health-monitor-rails (12.2.0)
railties (>= 6.1)
honeybadger (5.11.1)
http (5.2.0)
Expand Down Expand Up @@ -293,7 +293,7 @@ GEM
matrix (0.4.2)
method_source (1.1.0)
mini_mime (1.1.5)
minitest (5.24.0)
minitest (5.24.1)
mize (0.5.0)
msgpack (1.7.2)
multi_xml (0.7.1)
Expand All @@ -315,17 +315,17 @@ GEM
net-protocol
net-ssh (7.0.0.beta1)
nio4r (2.7.3)
nokogiri (1.16.6-aarch64-linux)
nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.6-arm-linux)
nokogiri (1.16.7-arm-linux)
racc (~> 1.4)
nokogiri (1.16.6-arm64-darwin)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.6-x86-linux)
nokogiri (1.16.7-x86-linux)
racc (~> 1.4)
nokogiri (1.16.6-x86_64-darwin)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.6-x86_64-linux)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
oai (1.2.1)
builder (>= 3.1.0)
Expand All @@ -351,7 +351,7 @@ GEM
public_suffix (5.0.5)
puma (5.6.8)
nio4r (~> 2.0)
racc (1.8.0)
racc (1.8.1)
rack (2.2.9)
rack-mini-profiler (2.3.4)
rack (>= 1.2.0)
Expand Down Expand Up @@ -573,7 +573,7 @@ GEM
nokogiri (~> 1.8)
yard (0.9.36)
yell (2.2.2)
zeitwerk (2.6.16)
zeitwerk (2.6.17)

PLATFORMS
aarch64-linux
Expand Down
13 changes: 0 additions & 13 deletions app/models/solr_status.rb

This file was deleted.

4 changes: 3 additions & 1 deletion config/initializers/health_monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
HealthMonitor.configure do |config|
config.cache

config.add_custom_provider(SolrStatus)
config.solr.configure do |c|
c.url = Blacklight.default_index.connection.uri.to_s
end

# Make this health check available at /health
config.path = :health
Expand Down

0 comments on commit 23c670c

Please sign in to comment.