Skip to content

Commit 82da49c

Browse files
authored
AP-520: convert healthcheck to okcomputer (#4)
1 parent a8061f1 commit 82da49c

File tree

6 files changed

+10
-30
lines changed

6 files changed

+10
-30
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ gem 'jquery-rails', '~> 4.4'
1515
gem 'lograge', '~> 0.11'
1616
gem 'mysql2', '~> 0.5.4'
1717
gem 'nokogiri', '~> 1.18'
18+
gem 'okcomputer', '~> 1.19'
1819
gem 'ougai', '~> 1.8'
1920
gem 'puma', '~> 6.6.1'
2021
gem 'rails', '~> 8.0.0'
21-
gem 'rails-healthcheck'
2222
gem 'rake'
2323
gem 'sass-rails', '>= 6'
2424
gem 'webpacker', '~> 5.4.3'

Gemfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ GEM
193193
oj (3.16.12)
194194
bigdecimal (>= 3.0)
195195
ostruct (>= 0.2)
196+
okcomputer (1.19.1)
197+
benchmark
196198
ostruct (0.6.3)
197199
ougai (1.9.1)
198200
oj (~> 3.10)
@@ -239,9 +241,6 @@ GEM
239241
activesupport (>= 5.0.0)
240242
minitest
241243
nokogiri (>= 1.6)
242-
rails-healthcheck (1.4.0)
243-
actionpack
244-
railties
245244
rails-html-sanitizer (1.6.2)
246245
loofah (~> 2.21)
247246
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
@@ -408,10 +407,10 @@ DEPENDENCIES
408407
lograge (~> 0.11)
409408
mysql2 (~> 0.5.4)
410409
nokogiri (~> 1.18)
410+
okcomputer (~> 1.19)
411411
ougai (~> 1.8)
412412
puma (~> 6.6.1)
413413
rails (~> 8.0.0)
414-
rails-healthcheck
415414
rake
416415
rspec-rails (~> 8.0)
417416
rspec_junit_formatter (~> 0.4.1)

config/initializers/healthcheck.rb

Lines changed: 0 additions & 15 deletions
This file was deleted.

config/initializers/okcomputer.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
# Health check configuration
4+
OkComputer.logger = Rails.logger
5+
OkComputer.check_in_parallel = true

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal:true
22

33
Rails.application.routes.draw do
4-
Healthcheck.routes(self)
4+
get 'health', to: 'ok_computer/ok_computer#index', defaults: { format: :json }
55
resources :nara_casefile
66
resources :search_casefiles
77

lib/tasks/health.rake

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)