Laravel 9 Sail Redis Supervisor Queue Configuration

To add the command to Supervisor for a Redis Queue append the following code to the supervisord.conf file in the appropriate Sail runtimes folder i.e. vendor\laravel\sail\runtimes\8.4

[program:queue]
command=php /var/www/html/artisan queue:work
user=sail
environment=LARAVEL_SAIL="1"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

Then run

sail build

Leave a Reply

Your email address will not be published. Required fields are marked *