Skip to content

Commit

Permalink
Merge pull request #1 from Micro-PHP/1.6.1
Browse files Browse the repository at this point in the history
v1.6.1 Fix with server start: only RR_MODE=http
  • Loading branch information
Asisyas authored Nov 8, 2023
2 parents 5d8e6e4 + d8e065a commit ea6e5c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Listener/ApplicationRoadrunnerStartedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public function __construct(
public function on(EventInterface $event): void
{
$sysenv = $event->systemEnvironment();
if ('cli' !== $sysenv || !getenv('RR_MODE')) {
$rrMode = getenv('RR_MODE');
if ('cli' !== $sysenv || 'http' !== $rrMode) {
return;
}

Expand Down

0 comments on commit ea6e5c7

Please sign in to comment.