Octane / High-perf mode
In v1.3.0, we integrated DocKing with Laravel Octane - a high PHP performance runner.
In short, it is like how we run "php artisan queue:work" or "node index.js". The application will be loaded into the memory, one-time bootstrap in startup,...
Requirement
Usage
To run DocKing in Octane mode, you need to run this command:
If you haven't installed RoadRunner, Laravel will ask your permission to automatically download the latest binary inside the root project folder, then run.
Production
To keep the command running for production usage, there are multiple ways to do so. We suggest using supervisor
to manage so that we can keep 2 things under 1 basket: queue & octane.
Basic configuration:
And then just hit these commands and you are good to go:
Also it is recommended to use nginx
as the reverse proxy
to serve the application, check out this for the sample nginx.conf
virtualhost file:
https://laravel.com/docs/10.x/octane#serving-your-application-via-nginx
Last updated