Skip to content

Commit ef855c1

Browse files
committed
Tweak environment file settings.
1 parent 714f6a5 commit ef855c1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

bootstrap/environment.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@
1111
|
1212
*/
1313

14-
try
14+
if (file_exists(__DIR__.'/.env'))
1515
{
1616
Dotenv::load(__DIR__.'/../');
1717

18-
Dotenv::required('APP_ENV');
19-
}
20-
catch (RuntimeException $e)
21-
{
22-
die('Application environment not configured.'.PHP_EOL);
18+
//Dotenv::required('APP_ENV');
2319
}
2420

21+
2522
/*
2623
|--------------------------------------------------------------------------
2724
| Detect The Application Environment
@@ -35,5 +32,5 @@
3532

3633
$env = $app->detectEnvironment(function()
3734
{
38-
return getenv('APP_ENV');
35+
return getenv('APP_ENV') ?: 'production';
3936
});

0 commit comments

Comments
 (0)