126 views - 21 May 2019

Ploi makes it a breeze to run Laravel Horizon. You can use the 'Daemons' tab in server level to configure this.

Use this command to run Laravel Horizon: php /home/ploi/my-app.com/artisan horizon, 1 process is enough as Laravel Horizon is able to spawn multiple supervisor workers. (More at the Laravel Documentation)

Take the following screenshot as an example:


This will spawn a supervisor configuration file like this:

[program:worker-138]
command=php /home/ploi/my-app.com/artisan horizon
process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
user=ploi
redirect_stderr=true
numprocs=1
stdout_logfile=/home/ploi/.ploi/worker-138.log

Ploi handles all the difficult things that you don't want to do. Are you ready?

Create an account, or contact us.