Created
November 11, 2020 11:17
-
-
Save felixivance/8ccd6d820e1f448cb58e95f9f4478720 to your computer and use it in GitHub Desktop.
Laravel-queue-worker Medium Article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install supervisor | |
cd /etc/supervisor/conf.d | |
#edit file | |
sudo nano /etc/supervisor/conf.d/queue-worker.conf | |
#command | |
[program:queue-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /var/www/html/artisan queue:work | |
autostart=true | |
autorestart=true | |
user=root | |
numprocs=8 | |
redirect_stderr=true | |
stdout_logfile=/var/www/html/worker.log | |
#supervisor commands | |
sudo supervisorctl reread | |
sudo supervisorctl update | |
sudo supervisorctl reload | |
sudo service supervisor restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, I just tried it about to test it