Skip to content

Instantly share code, notes, and snippets.

@jonpemby
Last active December 14, 2018 00:18
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 jonpemby/9959c2c8272ff70fab3ba903b3c5cdec to your computer and use it in GitHub Desktop.
Save jonpemby/9959c2c8272ff70fab3ba903b3c5cdec to your computer and use it in GitHub Desktop.
Set up supervisor for Laravel queues
# Place in: /etc/supervisor/conf.d/artisan-queue.conf
[program:artisan-queue]
commmand=php /var/www/html/artisan queue:work
autostart=true
autorestart=true
# Can add this if you want a non-laravel log file
# stderr_logfile=/var/www/html/storage/logs/queue_err.log
# stdout_logfile=/var/www/html/storage/logs/queue_out.log
apt-get install supervisor
# may need to restart supervisor
service supervisor restart
# Read changes to program files
supervisorctl reread
# Load changes into supervisor
supervisorctl update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment