I am just getting started with Laravel and Horizon so I am sorry if my question is a bit out there.
I have setup Laravel with Horizon and a Redis database. Everything works fine as long as I have my SSH connection open with the php artisan horizon
command running in there. As soon as I close the SSH session, it stops working.
I am new with these things so I am wondering what solution there would be. I found someone saying you should do php artisan horizon &
but that seems to work for a few minutes and then nothing.
The system is as setup on a webserver so maybe a cronjob can fix it. But my experience with those things is very limited. I hope someone out there can assist.
a fast solution would be to use the
screen
command if the server os is linux:screen
.php artisan horizon
.Ctrl
+a
, thend
, to detach from the current session, then exit from ssh