Simplify Railway healthcheck
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
"builder": "RAILPACK"
|
||||
},
|
||||
"deploy": {
|
||||
"healthcheckPath": "/api/health",
|
||||
"healthcheckTimeout": 100,
|
||||
"healthcheckPath": "/health",
|
||||
"healthcheckTimeout": 300,
|
||||
"restartPolicyType": "ON_FAILURE",
|
||||
"restartPolicyMaxRetries": 10
|
||||
}
|
||||
|
||||
@@ -16,3 +16,7 @@ use Illuminate\Support\Facades\Route;
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
Route::get('/health', function () {
|
||||
return response('ok', 200);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user