From e0c12a9760bd5afaad66b0b07f0ed1d4f139b548 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Fri, 20 Oct 2023 10:38:55 +0100 Subject: [PATCH] Use default Rails healthcheck --- config/deploy.yml | 4 ---- config/routes.rb | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/deploy.yml b/config/deploy.yml index 357af4e..881de19 100644 --- a/config/deploy.yml +++ b/config/deploy.yml @@ -52,7 +52,3 @@ builder: remote: arch: arm64 host: ssh://kamal@tsvallender.co.uk - -healthcheck: - path: /sessions/new - port: 3000 diff --git a/config/routes.rb b/config/routes.rb index 4954afe..88e2e0c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,4 +15,6 @@ Rails.application.routes.draw do resources :blog_posts resources :microposts resources :tags, only: [:index, :show] + + get "up" => "rails/health#show", as: :rails_health_check end