2024-03-19 09:24:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
class Horizon extends Command
|
|
|
|
{
|
|
|
|
protected $signature = 'start:horizon';
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-03-19 09:24:23 +00:00
|
|
|
protected $description = 'Start Horizon';
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-03-19 09:24:23 +00:00
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
if (config('coolify.is_horizon_enabled')) {
|
|
|
|
$this->info('Horizon is enabled. Starting.');
|
|
|
|
$this->call('horizon');
|
|
|
|
exit(0);
|
|
|
|
} else {
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|