From ef855c1175a0d38cfc30ae5d735f07b6c45f73dc Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 10 Oct 2014 08:33:05 -0500 Subject: [PATCH] Tweak environment file settings. --- bootstrap/environment.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/bootstrap/environment.php b/bootstrap/environment.php index b676d2c05e0..7f08f5e2700 100644 --- a/bootstrap/environment.php +++ b/bootstrap/environment.php @@ -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 @@ $env = $app->detectEnvironment(function() { - return getenv('APP_ENV'); + return getenv('APP_ENV') ?: 'production'; });