From 8f183fc0edf574fdd0b3b67ad839d9857ddfb9e1 Mon Sep 17 00:00:00 2001 From: ykiakao Date: Mon, 18 May 2026 22:40:01 -0500 Subject: [PATCH] Simplify Railway healthcheck --- railway.json | 4 ++-- routes/web.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/railway.json b/railway.json index fb8262f..9ede6c3 100644 --- a/railway.json +++ b/railway.json @@ -4,8 +4,8 @@ "builder": "RAILPACK" }, "deploy": { - "healthcheckPath": "/api/health", - "healthcheckTimeout": 100, + "healthcheckPath": "/health", + "healthcheckTimeout": 300, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } diff --git a/routes/web.php b/routes/web.php index d259f33..9c7becb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,3 +16,7 @@ use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('welcome'); }); + +Route::get('/health', function () { + return response('ok', 200); +});