24 lines
		
	
	
		
			455 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			455 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Console\Commands;
 | |
| 
 | |
| use Illuminate\Console\Command;
 | |
| 
 | |
| class Horizon extends Command
 | |
| {
 | |
|     protected $signature = 'start:horizon';
 | |
| 
 | |
|     protected $description = 'Start Horizon';
 | |
| 
 | |
|     public function handle()
 | |
|     {
 | |
|         if (config('coolify.is_horizon_enabled')) {
 | |
|             $this->info('Horizon is enabled. Starting.');
 | |
|             $this->call('horizon');
 | |
|             exit(0);
 | |
|         } else {
 | |
|             exit(0);
 | |
|         }
 | |
|     }
 | |
| }
 | 
