From ec2bab4b78d638a5a8c6a6a525b176776685f59c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 3 Apr 2021 02:39:04 +0200 Subject: Change health check (#15988) --- config/initializers/health_check.rb | 8 -------- config/routes.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 config/initializers/health_check.rb (limited to 'config') diff --git a/config/initializers/health_check.rb b/config/initializers/health_check.rb deleted file mode 100644 index 6f1e78fed..000000000 --- a/config/initializers/health_check.rb +++ /dev/null @@ -1,8 +0,0 @@ -HealthCheck.setup do |config| - config.uri = 'health' - - config.standard_checks = %w(database migrations cache) - config.full_checks = %w(database migrations cache) - - config.include_error_in_response_body = false -end diff --git a/config/routes.rb b/config/routes.rb index 6814dc61e..8ec67113b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,7 +10,7 @@ Rails.application.routes.draw do mount LetterOpenerWeb::Engine, at: 'letter_opener' if Rails.env.development? - health_check_routes + get 'health', to: 'health#show' authenticate :user, lambda { |u| u.admin? } do mount Sidekiq::Web, at: 'sidekiq', as: :sidekiq -- cgit