Run Laravels queue listener indefinitly in the background
I constantly have to do this, so thought I would share this with everyone else. This command will run Laravel's queue listener indefinitely in the background until the process is killed manually.
nohup php /path/to/artisan queue:listen > /dev/null 2>&1 &
Be sure to change the path and add any options to the command, like --tries=1
.
Written by Miles Johnson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Laravel
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#