Skip to content

Commit

Permalink
respect local env
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 9, 2020
1 parent 1b1e0eb commit 75e792d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Foundation/Console/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public function handle()
protected function startProcess()
{
$process = new Process($this->serverCommand(), null, collect($_ENV)->mapWithKeys(function ($value, $key) {
return [$key => false];
return $key === 'APP_ENV'
? [$key => $value]
: [$key => false];
})->all());

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

0 comments on commit 75e792d

Please sign in to comment.