队列 Redis 未在 Laravel Forge 上触发

Queue Redis are not fired on Laravel Forge

我使用 Laravel Forge 来部署我的 Laravel 网站。

我的 Redis 和队列的 .env 配置:

QUEUE_CONNECTION=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

我 运行 来自 Laravel Forge 的 Worker As Daemon。 laravel.log 中没有条目。

我用它来触发 Redis 上的队列:

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

问题是队列没有被触发...

我在 Laravel Forge 队列配置的 Environment (Optional) 中使用 production 解决了这个问题。