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

redbeavermedia's avatar

Can't make Horizon active (Forge worker + envoyer)

Hi all,

I'm running a setup with 2 app servers, 1 worker server & 1 cache server. They are all deployed through envoyer.

My jobs are visible in Horizon, but they aren't processed because of "Inactive" status.

When I try to run the command php8.2 artisan horizon on the worker server, I get this failure: "Could not open input file: artisan"

Can't make Horizon active... Anyone an idea?

Below my configuration

Worker server has a deamon php8.2 artisan horizon on /home/forge/site/current

Worker server has a Scheduled Job every minute php8.2 /home/forge/site/current/artisan schedule:run

In envoyer I added a deployment hook running on the worker server after "Active New Release" php8.2 artisan config:cache php8.2 artisan route:cache php8.2 artisan horizon:purge php8.2 artisan horizon:terminate

After 2 days of trial and error, in advance, thanks for the help.

0 likes
0 replies

Please or to participate in this conversation.