Skip to content

Commit ea6e5c7

Browse files
authored
Merge pull request #1 from Micro-PHP/1.6.1
v1.6.1 Fix with server start: only RR_MODE=http
2 parents 5d8e6e4 + d8e065a commit ea6e5c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Listener/ApplicationRoadrunnerStartedListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public function __construct(
4242
public function on(EventInterface $event): void
4343
{
4444
$sysenv = $event->systemEnvironment();
45-
if ('cli' !== $sysenv || !getenv('RR_MODE')) {
45+
$rrMode = getenv('RR_MODE');
46+
if ('cli' !== $sysenv || 'http' !== $rrMode) {
4647
return;
4748
}
4849

0 commit comments

Comments
 (0)