mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 04:47:10 +08:00
Add env config on bootstrap
This commit is contained in:
parent
c3c264aef7
commit
8f19f8439f
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ if (is_array($env = @include dirname(__DIR__) . '/.env.local.php') && (!isset($e
|
|||
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
||||
} else {
|
||||
// load all the .env files
|
||||
(new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env');
|
||||
(new Dotenv('APP_ENV'))->loadEnv(dirname(__DIR__) . '/.env');
|
||||
}
|
||||
|
||||
$_SERVER += $_ENV;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue