Skip to content

Commit

Permalink
add possibility to launch swoole server with additional php options (#…
Browse files Browse the repository at this point in the history
…570)

* add possibility to launch swoole server with php options

* spread config

* Update .gitignore

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
AbdelAbouhassane and taylorotwell authored Sep 5, 2022
1 parent d6c928b commit b271ea9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Commands/StartSwooleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ public function handle(
$this->forgetEnvironmentVariables();

$server = tap(new Process([
(new PhpExecutableFinder)->find(), config('octane.swoole.command', 'swoole-server'), $serverStateFile->path(),
(new PhpExecutableFinder)->find(),
...config('octane.swoole.php_options', []),
config('octane.swoole.command', 'swoole-server'),
$serverStateFile->path(),
], realpath(__DIR__.'/../../bin'), [
'APP_ENV' => app()->environment(),
'APP_BASE_PATH' => base_path(),
Expand Down

0 comments on commit b271ea9

Please sign in to comment.