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); +});