Skip to content

Bash script to setup supervisor for your Laravel homestead queue driver

Notifications You must be signed in to change notification settings

renepardon/laravel-homestead-queue-supervisor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Laravel Homestead Queue Supervisor

This bash script sets up a queue listener with supervisor on homestead in a breeze. It will listen for your queue's automatically when you run vagrant up.

Installation

SSH into homestead first:

homestead ssh

The second and last step is to run the script. It will ask the path to your project's root on homestead.

sudo su
source <(curl -s https://raw.githubusercontent.com/renepardon/laravel-homestead-queue-supervisor/master/homestead_queue_supervisor.sh)

Artisan queue command

Supervisor will execute the following command:

php artisan --timeout=300 queue:listen

You can add options to the command or change the command in /usr/local/bin/run_queue.sh

Future work

This bash script is very basic at the moment. Extending the script with options in order to specify things like timeouts, env, retry etc. is on the roadmap.

License

Laravel Homestead Queue Supervisor is open-sourced software licensed under the MIT license Original work done by @gmooren

About

Bash script to setup supervisor for your Laravel homestead queue driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%