Use a supervisor for this: https://laravel.com/docs/11.x/horizon#supervisor-configuration
Sep 1, 2024
2
Level 1
Using Laravel Horizon on shared webhosting
Hello everyone,
I use Laravel for my application and have shared web hosting package. I can run all my processes on the environment without any problems. However, I am now reaching the limits. Because I would like to use Laravel Horizon to process my queue.
To do this, I need to run the following command in the terminal:
php artisan horizon
This then starts my worker. This works quite well so far. But unfortunately only when I have the terminal open.
As soon as I close it, the worker stops working. How can I keep the worker running in the background on my shared web hosting?
Best regards
Please or to participate in this conversation.