Skip to content

Commit

Permalink
Use non-standard environment name option (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvh authored Mar 19, 2024
1 parent 03ec602 commit 91faaf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runtime/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(Application $app)
{
$this->app = $app;

$this->environment = $_ENV['APP_ENV'] ?? 'production';
$this->environment = $_ENV['VAPOR_ENV'] ?? $_ENV['APP_ENV'] ?? 'production';
$this->environmentFile = '.env.'.$this->environment;
$this->encryptedFile = '.env.'.$this->environment.'.encrypted';
}
Expand Down

0 comments on commit 91faaf8

Please sign in to comment.