Tweak environment file settings.
This commit is contained in:
parent
714f6a5574
commit
ef855c1175
|
@ -11,17 +11,14 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
try
|
if (file_exists(__DIR__.'/.env'))
|
||||||
{
|
{
|
||||||
Dotenv::load(__DIR__.'/../');
|
Dotenv::load(__DIR__.'/../');
|
||||||
|
|
||||||
Dotenv::required('APP_ENV');
|
//Dotenv::required('APP_ENV');
|
||||||
}
|
|
||||||
catch (RuntimeException $e)
|
|
||||||
{
|
|
||||||
die('Application environment not configured.'.PHP_EOL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Detect The Application Environment
|
| Detect The Application Environment
|
||||||
|
@ -35,5 +32,5 @@
|
||||||
|
|
||||||
$env = $app->detectEnvironment(function()
|
$env = $app->detectEnvironment(function()
|
||||||
{
|
{
|
||||||
return getenv('APP_ENV');
|
return getenv('APP_ENV') ?: 'production';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue