Created
May 30, 2020 13:49
-
-
Save RhythmShahriar/3a1cb232498544e381347b68293c8d4e to your computer and use it in GitHub Desktop.
supervisor config file for laravel queue
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
## Install - Ubuntu | |
# sudo apt install supervisor -y | |
## Place this file in /etc/supervisor/conf.d | |
## add this config for supervisor process | |
# supervisorctl reread | |
## Update the process | |
# supervisorctl update | |
[program:prod-app-queue-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php [PATH TO YOUR LARAVEL APP]/artisan queue:work --tries=1 | |
autostart=true | |
autorestart=true | |
user=root | |
numprocs=8 | |
redirect_stderr=true | |
stdout_logfile=/[PATH TO YOUR LOGS]/app-queue-out.log | |
stderr_logfile=/[PATH TO YOUR LOGS]/app-queue-err.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment