Skip to content

Commit b271ea9

Browse files
add possibility to launch swoole server with additional php options (#570)
* add possibility to launch swoole server with php options * spread config * Update .gitignore Co-authored-by: Taylor Otwell <[email protected]>
1 parent d6c928b commit b271ea9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Commands/StartSwooleCommand.php

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

8080
$server = tap(new Process([
81-
(new PhpExecutableFinder)->find(), config('octane.swoole.command', 'swoole-server'), $serverStateFile->path(),
81+
(new PhpExecutableFinder)->find(),
82+
...config('octane.swoole.php_options', []),
83+
config('octane.swoole.command', 'swoole-server'),
84+
$serverStateFile->path(),
8285
], realpath(__DIR__.'/../../bin'), [
8386
'APP_ENV' => app()->environment(),
8487
'APP_BASE_PATH' => base_path(),

0 commit comments

Comments
 (0)