Fixes #740 - Use getenv() instead of $_SERVER
This commit is contained in:
parent
7d4ebbc24d
commit
132529c0ff
|
|
@ -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';
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue