Skip to content

Commit 4d53e1f

Browse files
committed
Fixes missing version option
1 parent d1052b2 commit 4d53e1f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Commands/Concerns/InstallsRoadRunnerDependencies.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait InstallsRoadRunnerDependencies
2121
*
2222
* @var string
2323
*/
24-
protected $requiredVersion = '2.6.6';
24+
protected $requiredVersion = '2.8.2';
2525

2626
/**
2727
* Determine if RoadRunner is installed.
@@ -44,13 +44,13 @@ protected function ensureRoadRunnerPackageIsInstalled()
4444
return true;
4545
}
4646

47-
if (! $this->confirm('Octane requires "spiral/roadrunner:^2.0". Do you wish to install it as a dependency?')) {
47+
if (! $this->confirm('Octane requires "spiral/roadrunner:^2.8.2". Do you wish to install it as a dependency?')) {
4848
$this->error('Octane requires "spiral/roadrunner".');
4949

5050
return false;
5151
}
5252

53-
$command = $this->findComposer().' require spiral/roadrunner:^2.0 --with-all-dependencies';
53+
$command = $this->findComposer().' require spiral/roadrunner:^2.8.2 --with-all-dependencies';
5454

5555
$process = Process::fromShellCommandline($command, null, null, null, null);
5656

src/Commands/StartRoadRunnerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public function handle(ServerProcessInspector $inspector, ServerStateFile $serve
7676
$server = tap(new Process(array_filter([
7777
$roadRunnerBinary,
7878
'-c', $this->configPath(),
79+
'-o', 'version=2.7',
7980
'-o', 'http.address='.$this->option('host').':'.$this->option('port'),
8081
'-o', 'server.command='.(new PhpExecutableFinder)->find().' '.base_path('vendor/bin/roadrunner-worker'),
8182
'-o', 'http.pool.num_workers='.$this->workerCount(),

0 commit comments

Comments
 (0)