andylord565's avatar

Horizon windows & running

Just installed horizon and on windows do not seem to be able to get it to run on windows had to install via composer with ignore-platform-reqs can it work on windows ?

Also to run horizon it states to use "php artisan horizon" how is best to do this on a live server via a cron or by SSH once ?

0 likes
1 reply
bobbybouwmann's avatar
Level 88

The best way to run horizon is using supervisor. Supervisor is a tool that keeps your processes a life. So whenever an error occurs while running horizon, supervisor will restart the same process for you. This way you can always make sure that horizon keeps running.

In general horizon doesn't run natively on windows because of how it's build. They are also not going to build in support for it, because you will almost always run horizon on a linux server. So you can either install Homestead, the virtual machine from Laravel.

An alternative is installing Laragon for windows, this way you have access to everything you need. For horizon specifically: https://forum.laragon.org/topic/594/tutorial-how-to-install-laravel-5-5-dev-develop-laravel-horizon

3 likes

Please or to participate in this conversation.