diff --git a/src/Commands/StartRoadRunnerCommand.php b/src/Commands/StartRoadRunnerCommand.php index 1dceed75d..fcf3592c7 100644 --- a/src/Commands/StartRoadRunnerCommand.php +++ b/src/Commands/StartRoadRunnerCommand.php @@ -79,7 +79,7 @@ public function handle(ServerProcessInspector $inspector, ServerStateFile $serve '-c', $this->configPath(), '-o', 'version=2.7', '-o', 'http.address='.$this->option('host').':'.$this->option('port'), - '-o', 'server.command='.(new PhpExecutableFinder)->find().' '.base_path('vendor/bin/roadrunner-worker'), + '-o', 'server.command='.(new PhpExecutableFinder)->find().' '.base_path(config('octane.roadrunner.command', 'vendor/bin/roadrunner-worker')), '-o', 'http.pool.num_workers='.$this->workerCount(), '-o', 'http.pool.max_jobs='.$this->option('max-requests'), '-o', 'rpc.listen=tcp://'.$this->option('host').':'.$this->rpcPort(), diff --git a/src/Commands/StartSwooleCommand.php b/src/Commands/StartSwooleCommand.php index f00233611..77d77b55b 100644 --- a/src/Commands/StartSwooleCommand.php +++ b/src/Commands/StartSwooleCommand.php @@ -78,7 +78,7 @@ public function handle( $this->forgetEnvironmentVariables(); $server = tap(new Process([ - (new PhpExecutableFinder)->find(), 'swoole-server', $serverStateFile->path(), + (new PhpExecutableFinder)->find(), config('octane.swoole.command', 'swoole-server'), $serverStateFile->path(), ], realpath(__DIR__.'/../../bin'), [ 'APP_ENV' => app()->environment(), 'APP_BASE_PATH' => base_path(),