Showing
2 changed files
with
4 additions
and
1 deletions
| ... | @@ -16,6 +16,9 @@ class Kernel extends ConsoleKernel | ... | @@ -16,6 +16,9 @@ class Kernel extends ConsoleKernel |
| 16 | protected function schedule(Schedule $schedule) | 16 | protected function schedule(Schedule $schedule) |
| 17 | { | 17 | { |
| 18 | // $schedule->command('inspire')->hourly(); | 18 | // $schedule->command('inspire')->hourly(); |
| 19 | + | ||
| 20 | + // horizon面板的metrics仪表盘 | ||
| 21 | + $schedule->command('horizon:snapshot')->everyFiveMinutes(); | ||
| 19 | } | 22 | } |
| 20 | 23 | ||
| 21 | /** | 24 | /** | ... | ... |
| ... | @@ -25,7 +25,7 @@ class AppServiceProvider extends ServiceProvider | ... | @@ -25,7 +25,7 @@ class AppServiceProvider extends ServiceProvider |
| 25 | */ | 25 | */ |
| 26 | public function boot() | 26 | public function boot() |
| 27 | { | 27 | { |
| 28 | - // | 28 | + // 保证生产模式也能访问到horizon面板 |
| 29 | Horizon::auth(function () { | 29 | Horizon::auth(function () { |
| 30 | return true; | 30 | return true; |
| 31 | }); | 31 | }); | ... | ... |
-
Please register or login to post a comment