laradock 添加每个站点的队列监控
找到laravel-horizon
目录,修改supervisord.d/laravel-horizon.conf
文件
# laravel-worker-site-1.conf
[program:laravel-worker]
progress_name=%(program_name)s_%(progress_num)02d
command=php /var/www/site-1/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
numprocs=8
user=laradock
redirect_stderr=true
# laravel-worker-site-2.conf
[program:laravel-worker]
progress_name=%(program_name)s_%(progress_num)02d
command=php /var/www/site-2/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
numprocs=8
user=laradock
redirect_stderr=true
为每个站点的监控配置相应的进程、执行命令以及一些相关的参数