diff --git a/bootstrap/start.php b/bootstrap/start.php index 077053b6d..cd963024c 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -25,7 +25,7 @@ $app = new Illuminate\Foundation\Application; */ $env = $app->detectEnvironment(function () { - return isset($_SERVER['CMS_ENV']) ? $_SERVER['CMS_ENV'] : 'production'; + return getenv('CMS_ENV') ?: 'production'; }); /*