• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_discovery / 50173c86-b651-4056-9497-c60be1e6078d

13 Nov 2024 06:04PM UTC coverage: 96.432% (+0.1%) from 96.323%
50173c86-b651-4056-9497-c60be1e6078d

Pull #716

circleci

tpendragon
Add capistrano task to remove application from the load balancer.

Closes #715
Pull Request #716: Add capistrano task to remove application from the load balancer.

2 of 4 new or added lines in 1 file covered. (50.0%)

3595 of 3728 relevant lines covered (96.43%)

275.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/config/initializers/health_monitor.rb
1
# frozen_string_literal: true
2
Rails.application.config.after_initialize do
1✔
3
  HealthMonitor.configure do |config|
1✔
4
    config.cache
1✔
5

6
    config.file_absence.configure do |file_config|
1✔
7
      file_config.filename = "public/remove-from-nginx"
1✔
8
    end
9
    config.solr.configure do |c|
1✔
10
      c.url = Blacklight.default_index.connection.uri.to_s
1✔
11
      c.collection = Blacklight.default_index.connection.uri.path.split("/").last
1✔
12
    end
13

14
    # Make this health check available at /health
15
    config.path = :health
1✔
16

17
    config.error_callback = proc do |e|
1✔
NEW
18
      Rails.logger.error "Health check failed with: #{e.message}"
×
NEW
19
      Honeybadger.notify(e)
×
20
    end
21
  end
22
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc