AnimeThemes / animethemes-server

AnimeThemes.moe resource management & API
https://animethemes.moe/
MIT License
89 stars 14 forks source link

Install Octane #204

Open ghost opened 3 years ago

ghost commented 3 years ago

Octane is a new package in the Laravel ecosystem that serves applications from Swoole/RoadRunner. The application is booted once and held in memory rather than booting at the beginning of the request lifecycle. This should increase the performance of the application. It may be overkill for our purposes but we may as well prepare for the worst.

https://laravel.com/docs/8.x/octane

ghost commented 3 years ago

Some updates based on recent research:

ghost commented 3 years ago

Swoole does not support Windows:

https://www.swoole.co.uk/docs/get-started/prerequisites

Roadrunner releases Windows binaries:

https://roadrunner.dev/docs/intro-install

https://github.com/spiral/roadrunner-binary/releases

Because octane has to be explicitly started through artisan, it should be possible to serve laravel without octane, but I would like to confirm this myself.