From 3537ecc15e77bbfa74f82c9cb65c30788ac93152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20V=C3=A1squez?= Date: Fri, 10 Jul 2026 10:15:58 -0600 Subject: [PATCH] Enable Rails built-in health check endpoint at /up Mounts Rails::HealthController#show at /up (rails_health_check). Returns 200 when the app boots cleanly, 500 otherwise. The controller responds with an HTML page for browsers/uptime bots and a JSON body for Accept: application/json clients, so load balancers, monitors, and JSON consumers share one endpoint. No custom controller. --- config/routes.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 10a6b1a..e9da409 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,11 @@ Rails.application.routes.draw do + # Rails' built-in health check endpoint. Returns 200 when the app boots with + # no exceptions, 500 otherwise. Responds with an HTML page (browsers/bots) or + # a JSON body (Accept: application/json), so uptime monitors, load balancers, + # and JSON clients are all covered by the same endpoint. + get "up" => "rails/health#show", as: :rails_health_check + get 'home/index' get 'home/privacy' root :to => "home#index"