Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

curiosity's avatar

How do I set up php artisan queue:work on a server with Forge/Envoyer?

I'm a bit confused as to how to set up php artisan queue:work on a server with Forge. At first, I set up a Daemon in Forge with php artisan queue:work however that did not start any of the jobs that were already queued up, nor new ones that I started with the app.

Then, I tried setting up a new worker under Queue for the site in Forge as per https://forge.laravel.com/docs/1.0/sites/queues.html

I tried both redis and database connection type. I checked Run Worker As Daemon (Laravel 4.2+) as I'm on Laravel 8 (my understanding is it provides a slight performance boost and happens automatically when doing php artisan queue:work?)

Everything else I left at default.

While it says the worker is running, the jobs that I'm starting with the app are not actually kicking off, until I manually go into the server and type php artisan queue:work

What can I do to resolve this issue?

0 likes
6 replies
dastii's avatar

Can you share your daemon setup on forge?

curiosity's avatar

Okay so I did get it working on the site queue section creating a worker, but it seems sometimes it would work and others it wouldn't. After pushing on Envoyer today it seemed not to work again, until I restarted the workers in Forge. I have cd {{ current }} php artisan queue:restart set up in Envoyer though. (Honestly, I have a few workers set up in Forge now, and I don't even know which ones are working or not, just that something is working, lol.)

Please or to participate in this conversation.