M
M
Maxim Volkov2022-02-21 13:32:04
ubuntu
Maxim Volkov, 2022-02-21 13:32:04

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


and an addition was made to the supervisord.conf file

files = /etc/supervisor/laravel-worker.conf

But how to configure the Supervisor for the second site:
Create a similar laravel-worker.conf file, or make changes to the existing
one

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2022-02-21
@Sanes

Add another under a different name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question