Laravel Octane and RoadRunner advanced configuration
As mentioned in the previous section, we can control some parameters during the launch of Laravel Octane. This is because you want to change some options, such as the number of workers or the port and, like in the next examples, if you want to activate the HTTPS protocol.
Under the hood, Octane collects parameters from the command line and some Octane configuration and starts the RoadRunner process (it starts the rr
command).
In the Octane source code, there is a file called StartRoadRunnerCommand.php
that implements a Laravel artisan command with the following code:
$server = tap(new Process(array_filter([ $roadRunnerBinary, '-c', $this->configPath(), '-o', 'version=2.7', '-o', 'http.address='.$this->option('host').': &apos...