In development, you start queue:work manually in the terminal. But in production, you need the queue worker to run continuously and restart automatically if it crashes. That's where Supervisor comes in.
What is Supervisor?
Supervisor is a process monitor for Linux. It watches your queue worker processes and restarts them if they exit unexpectedly. Without it, a crashed worker simply stops processing jobs until someone notices and manually restarts it.
Installing Supervisor
On Ubuntu/Debian:
sudo apt-get install supervisor
Supervisor configuration files live in /etc/supervisor/conf.d/.
Configuring a Queue Worker
Create a configuration file for your Laravel...