From 91faaf83b8a624397c95ad4cd29ddb4a90c2ae6c Mon Sep 17 00:00:00 2001 From: Joel Van Horn <129096+joelvh@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:10:48 -0400 Subject: [PATCH] Use non-standard environment name option (#176) --- src/Runtime/Environment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runtime/Environment.php b/src/Runtime/Environment.php index 670e5e8..8bf7a3f 100644 --- a/src/Runtime/Environment.php +++ b/src/Runtime/Environment.php @@ -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'; }