Skip to content

Commit a6ac540

Browse files
Make the bin files used by Swoole and Roadrunner config options (#502)
* make the bin file used by swoole and roadrunner configurable options * Update StartRoadRunnerCommand.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent d58de04 commit a6ac540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/StartRoadRunnerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function handle(ServerProcessInspector $inspector, ServerStateFile $serve
7979
'-c', $this->configPath(),
8080
'-o', 'version=2.7',
8181
'-o', 'http.address='.$this->option('host').':'.$this->option('port'),
82-
'-o', 'server.command='.(new PhpExecutableFinder)->find().' '.base_path('vendor/bin/roadrunner-worker'),
82+
'-o', 'server.command='.(new PhpExecutableFinder)->find().' '.base_path(config('octane.roadrunner.command', 'vendor/bin/roadrunner-worker')),
8383
'-o', 'http.pool.num_workers='.$this->workerCount(),
8484
'-o', 'http.pool.max_jobs='.$this->option('max-requests'),
8585
'-o', 'rpc.listen=tcp://'.$this->option('host').':'.$this->rpcPort(),

src/Commands/StartSwooleCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function handle(
7878
$this->forgetEnvironmentVariables();
7979

8080
$server = tap(new Process([
81-
(new PhpExecutableFinder)->find(), 'swoole-server', $serverStateFile->path(),
81+
(new PhpExecutableFinder)->find(), config('octane.swoole.command', 'swoole-server'), $serverStateFile->path(),
8282
], realpath(__DIR__.'/../../bin'), [
8383
'APP_ENV' => app()->environment(),
8484
'APP_BASE_PATH' => base_path(),

0 commit comments

Comments
 (0)