Skip to content

Commit 75e792d

Browse files
committed
respect local env
1 parent 1b1e0eb commit 75e792d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ public function handle()
9393
protected function startProcess()
9494
{
9595
$process = new Process($this->serverCommand(), null, collect($_ENV)->mapWithKeys(function ($value, $key) {
96-
return [$key => false];
96+
return $key === 'APP_ENV'
97+
? [$key => $value]
98+
: [$key => false];
9799
})->all());
98100

99101
$process->start(function ($type, $buffer) {

0 commit comments

Comments
 (0)