S.M_Emamian
S.M_Emamian

Reputation: 17373

supervisor laravel doesn't work and started

my server os is centOS.

# pwd
/etc/supervisord.d

at this path I created a file:

zarsamlog-worker.conf

the content of it:

[program:laravel-worker-log]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/artisan queue:work --sleep=3 --tries=2
autostart=true
autorestart=true
user=www-data
numprocs=2
redirect_stderr=true
stdout_logfile=/var/www/storage/logs/supervisor_queue-work.log

now:

but this command:

#supervisorctl reread
No config updates to processes

returns no config updates to processes!

Upvotes: 0

Views: 1000

Answers (1)

Isha
Isha

Reputation: 431

Please refer below link, everything you need to configure and run supervisor with laravel, make sure you modify command from

command=php /var/www/artisan queue:work --sleep=3 --tries=2

to

command=php artisan queue:work --sleep=3 --tries=2

as exactly the way you execute in command line in laravel project Link : https://vannstudios.com/sending-emails-using-laravel-queues-and-beanstalkd

Upvotes: 1

Related Questions