Commit ef855c11 authored by Taylor Otwell's avatar Taylor Otwell

Tweak environment file settings.

parent 714f6a55
......@@ -11,17 +11,14 @@
|
*/
try
if (file_exists(__DIR__.'/.env'))
{
Dotenv::load(__DIR__.'/../');
Dotenv::required('APP_ENV');
}
catch (RuntimeException $e)
{
die('Application environment not configured.'.PHP_EOL);
//Dotenv::required('APP_ENV');
}
/*
|--------------------------------------------------------------------------
| Detect The Application Environment
......@@ -35,5 +32,5 @@ catch (RuntimeException $e)
$env = $app->detectEnvironment(function()
{
return getenv('APP_ENV');
return getenv('APP_ENV') ?: 'production';
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment