diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index c38638275..2e89847f0 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -14,7 +14,6 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule): void { $schedule->job(new ContainerStatusJob)->everyMinute(); - // $schedule->command('inspire')->hourly(); } /** diff --git a/docker/dev/supervisord.conf b/docker/dev/supervisord.conf index a2ff48927..4af5bb4bd 100644 --- a/docker/dev/supervisord.conf +++ b/docker/dev/supervisord.conf @@ -25,3 +25,16 @@ numprocs=8 redirect_stderr=true stdout_logfile=/var/www/html/storage/logs/worker.log stopwaitsecs=3600 + +[program:laravel-schedule] +process_name=%(program_name)s_%(process_num)02d +command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan schedule:work +user=sail +autostart=true +autorestart=true +stopasgroup=true +killasgroup=true +numprocs=8 +redirect_stderr=true +stdout_logfile=/var/www/html/storage/logs/worker.log +stopwaitsecs=3600