Ad

Queue Redis Are Not Fired On Laravel Forge

- 1 answer

I use Laravel Forge to deploy my Laravel website.

Configuration of my .env for Redis and Queues:

QUEUE_CONNECTION=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

I run Worker As Daemon from Laravel Forge. No entry in laravel.log.

I use this to fire queue on Redis:

ProcessJob::dispatch($article);
dispatch(new ProcessJob($article));

The problem is queue aren't fired...

Ad

Answer

I solved the problem with production in Environment (Optional) on Laravel Forge Queue config.

Ad
source: stackoverflow.com
Ad