Add env config on bootstrap

This commit is contained in:
Jack Anderson 2024-10-30 15:29:38 +00:00
parent c3c264aef7
commit 8f19f8439f

View file

@ -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.'); throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
} else { } else {
// load all the .env files // load all the .env files
(new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env'); (new Dotenv('APP_ENV'))->loadEnv(dirname(__DIR__) . '/.env');
} }
$_SERVER += $_ENV; $_SERVER += $_ENV;