Skip to content

Commit 11c8962

Browse files
committed
Fix health check
1 parent 7a6be06 commit 11c8962

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

bootstrap/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
->withRouting(
99
web: __DIR__.'/../routes/web.php',
1010
commands: __DIR__.'/../routes/console.php',
11-
health: '/up',
11+
// health: '/up',
1212
)
1313
->withMiddleware(function (Middleware $middleware) {
1414
//

resources/views/health-up.blade.php

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>{{ config('app.name') }} &dash; @yield('title')</title>
8+
@vite(['resources/css/app.css'])
9+
</head>
10+
11+
<body class="antialiased">
12+
<div
13+
class="sm:flex sm:justify-center sm:items-center selection:bg-red-500 selection:text-white relative min-h-screen bg-gray-100">
14+
<div class="sm:w-3/4 xl:w-1/2 w-full p-6 mx-auto">
15+
<div
16+
class="from-gray-700/50 via-transparent shadow-gray-500/20 focus:outline focus:outline-2 focus:outline-red-500 flex items-center px-6 py-4 bg-white rounded-lg shadow-2xl">
17+
<div class="relative flex w-3 h-3">
18+
<span
19+
class="animate-ping absolute inline-flex w-full h-full bg-green-400 rounded-full opacity-75"></span>
20+
<span class="relative inline-flex w-3 h-3 bg-green-400 rounded-full"></span>
21+
</div>
22+
23+
<div class="ml-6">
24+
<h2 class="text-xl font-semibold text-gray-900">Application up</h2>
25+
26+
<p class="dark:text-gray-400 mt-2 text-sm leading-relaxed text-gray-500">
27+
HTTP request received.
28+
29+
@if (defined('LARAVEL_START'))
30+
Response successfully rendered in {{ round((microtime(true) - LARAVEL_START) * 1000) }}ms.
31+
@endif
32+
</p>
33+
</div>
34+
</div>
35+
</div>
36+
</div>
37+
</body>
38+
39+
</html>

routes/web.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Illuminate\Support\Facades\App;
1313
use Illuminate\Support\Facades\Route;
1414

15+
Route::view('up', 'health-up');
1516
Route::view('/', 'welcome')->middleware('guest');
1617

1718
Route::middleware('auth')->group(function () {

0 commit comments

Comments
 (0)