Last active
December 14, 2018 00:18
-
-
Save jonpemby/9959c2c8272ff70fab3ba903b3c5cdec to your computer and use it in GitHub Desktop.
Set up supervisor for Laravel queues
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
# 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 |
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
apt-get install supervisor | |
# may need to restart supervisor | |
service supervisor restart |
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
# 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