Skip to content

Bash script to setup supervisor for your Laravel homestead queue driver

Notifications You must be signed in to change notification settings

gmooren/laravel-homestead-queue-supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

From within your laravel project root ssh into homestead

vagrant ssh

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

source <(curl -s https://raw.githubusercontent.com/gmooren/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

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