Simplify Railway healthcheck
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user