Simplify Railway healthcheck

This commit is contained in:
2026-05-18 22:40:01 -05:00
parent 99810f0695
commit 8f183fc0ed
2 changed files with 6 additions and 2 deletions

View File

@@ -4,8 +4,8 @@
"builder": "RAILPACK" "builder": "RAILPACK"
}, },
"deploy": { "deploy": {
"healthcheckPath": "/api/health", "healthcheckPath": "/health",
"healthcheckTimeout": 100, "healthcheckTimeout": 300,
"restartPolicyType": "ON_FAILURE", "restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10 "restartPolicyMaxRetries": 10
} }

View File

@@ -16,3 +16,7 @@ use Illuminate\Support\Facades\Route;
Route::get('/', function () { Route::get('/', function () {
return view('welcome'); return view('welcome');
}); });
Route::get('/health', function () {
return response('ok', 200);
});