Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
714f6a5
commit ef855c1
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,14 @@ | |
| | ||
*/ | ||
|
||
try | ||
if (file_exists(__DIR__.'/.env')) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
{ | ||
Dotenv::load(__DIR__.'/../'); | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
sschlein
|
||
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'; | ||
}); |
are .env files going to be stored in the bootstrap folder? if they are going to be in the base folder then we should look for it in
if (file_exists(__DIR__.'/../.env'))
, right?