-
Notifications
You must be signed in to change notification settings - Fork 1
Install Supervisor
Valentin Ivaşcu edited this page May 27, 2015
·
1 revision
Homepage: http://supervisord.org/
In my vagrant ubuntu 14.04 it was already installed but i prefer to remove the old one and install it in correct path (you should see if you have it installed. Be careful if you want to delete it, you have to see exactly how has been configured)
sudo apt-get remove supervisor --purge
sudo rm -rf /var/log/supervisor
sudo apt-get autoremove
Install Supervisor
sudo apt-get install supervisor
Add queue.conf
sudo nano /etc/supervisor/conf.d/queue.conf
Add these to this config:
[program:queue]
command=php artisan queue:listen --tries=2
directory=/path/to/your/laravel
stdout_logfile=/path/to/your/laravel/storage/logs/queue_supervisord.log
redirect_stderr=true
autostart=true
autorestart=true
Open supervisor control
sudo supervisorctl
then run
reread
add queue
start queue
if it's saying that it's already started, just don't panic, it`s ok! :)