Answer the question
In order to leave comments, you need to log in
How to set up a Supervisor on a server for two Laravel sites to send mail notifications using the queuing mechanism?
Please share your experience and knowledge.
I have a Laravel site hosted on a VDS server. The queuing mechanism is used to send mail notifications. Everything was done according to the instructions, Supervisor is set up and working.
On this server, I placed the second site, on which it is also necessary to configure the sending of mail notifications. But I got confused with setting up a supervisor for the second site.
In the first case, according to the instructions, a file was created: laravel-worker.conf
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/my-site.ru/artisan queue:work --tries=3
autostart=true
autorestart=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/var/log/supervisor/laravel-queue.log
files = /etc/supervisor/laravel-worker.conf
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question