Skip to content

Commit

Permalink
Merge pull request #725 from sul-dlss/tweak-status-checks
Browse files Browse the repository at this point in the history
don't hammer homepage of purl with embed status checks
  • Loading branch information
jmartin-sul authored Sep 29, 2016
2 parents f9f820e + b677fdd commit 4a116a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/okcomputer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
OkComputer::Registry.register 'ruby_version', OkComputer::RubyVersionCheck.new
# TODO: add app version check when okcomputer works with cap 3 (see http://github.com/sportngin/okcomputer#112)

OkComputer::Registry.register 'purl_url', OkComputer::HttpCheck.new(Settings.purl_url)
# note that purl home page is very resource heavy
purl_url_to_check = Settings.purl_url + (Settings.purl_url.end_with?('/') ? '' : '/') + 'status'
OkComputer::Registry.register 'purl_url', OkComputer::HttpCheck.new(purl_url_to_check)
OkComputer::Registry.register 'stacks_url', OkComputer::HttpCheck.new(Settings.stacks_url)

# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 4a116a2

Please sign in to comment.