Skip to content

Instantly share code, notes, and snippets.

@egulhan
Created April 14, 2019 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egulhan/e0194fbcdf41aa65fa15e5044b93df73 to your computer and use it in GitHub Desktop.
Save egulhan/e0194fbcdf41aa65fa15e5044b93df73 to your computer and use it in GitHub Desktop.
Supervisor configuration for Redis queue Laravel worker
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php ../artisan queue:work redis --sleep=3 --tries=3
directory=/var/www/projects/project1/web/public/
autostart=true
autorestart=true
user=www-data
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/projects/project1/web/worker.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment