Change health check (#15988)
This commit is contained in:
parent
abad99fa10
commit
82cce18227
5 changed files with 8 additions and 19 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue