Skip to content

Commit a5c558f

Browse files
ykztsGargron
authored andcommitted
Hide error message on /heath (#11947)
* Hide error message on /heath * update health_check
1 parent b02169f commit a5c558f

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ gem 'bootsnap', '~> 1.4', require: false
2929
gem 'browser'
3030
gem 'charlock_holmes', '~> 0.7.6'
3131
gem 'iso-639'
32-
gem 'chewy', '~> 5.0'
32+
gem 'chewy', '~> 5.1'
3333
gem 'cld3', '~> 3.2.4'
3434
gem 'devise', '~> 4.7'
3535
gem 'devise-two-factor', '~> 3.1'
@@ -50,7 +50,7 @@ gem 'fastimage'
5050
gem 'goldfinger', '~> 2.1'
5151
gem 'hiredis', '~> 0.6'
5252
gem 'redis-namespace', '~> 1.5'
53-
gem 'health_check', '~> 3.0'
53+
gem 'health_check', git: 'https://github.com/ianheggie/health_check', ref: '0b799ead604f900ed50685e9b2d469cd2befba5b'
5454
gem 'htmlentities', '~> 4.3'
5555
gem 'http', '~> 3.3'
5656
gem 'http_accept_language', '~> 2.1'

Gemfile.lock

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
GIT
2+
remote: https://github.com/ianheggie/health_check
3+
revision: 0b799ead604f900ed50685e9b2d469cd2befba5b
4+
ref: 0b799ead604f900ed50685e9b2d469cd2befba5b
5+
specs:
6+
health_check (4.0.0.pre)
7+
rails (>= 4.0)
8+
19
GIT
210
remote: https://github.com/rtomayko/posix-spawn
311
revision: 58465d2e213991f8afb13b984854a49fcdcc980c
@@ -161,7 +169,7 @@ GEM
161169
case_transform (0.2)
162170
activesupport
163171
charlock_holmes (0.7.6)
164-
chewy (5.0.1)
172+
chewy (5.1.0)
165173
activesupport (>= 4.0)
166174
elasticsearch (>= 2.0.0)
167175
elasticsearch-dsl
@@ -278,8 +286,6 @@ GEM
278286
concurrent-ruby (~> 1.0)
279287
hashdiff (1.0.0)
280288
hashie (3.6.0)
281-
health_check (3.0.0)
282-
railties (>= 5.0)
283289
heapy (0.1.4)
284290
highline (2.0.1)
285291
hiredis (0.6.3)
@@ -687,7 +693,7 @@ DEPENDENCIES
687693
capistrano-yarn (~> 2.0)
688694
capybara (~> 3.29)
689695
charlock_holmes (~> 0.7.6)
690-
chewy (~> 5.0)
696+
chewy (~> 5.1)
691697
cld3 (~> 3.2.4)
692698
climate_control (~> 0.2)
693699
concurrent-ruby
@@ -708,7 +714,7 @@ DEPENDENCIES
708714
fuubar (~> 2.4)
709715
goldfinger (~> 2.1)
710716
hamlit-rails (~> 0.2)
711-
health_check (~> 3.0)
717+
health_check!
712718
hiredis (~> 0.6)
713719
htmlentities (~> 4.3)
714720
http (~> 3.3)

config/initializers/health_check.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33

44
config.standard_checks = %w(database migrations cache)
55
config.full_checks = %w(database migrations cache)
6+
7+
config.include_error_in_response_body = false
68
end

0 commit comments

Comments
 (0)