change env
This commit is contained in:
+5
-1
@@ -141,7 +141,11 @@ class Boot
|
||||
protected static function loadDotEnv(Paths $paths): void
|
||||
{
|
||||
require_once $paths->systemDirectory . '/Config/DotEnv.php';
|
||||
(new DotEnv($paths->appDirectory . '/../'))->load();
|
||||
$env_file = '.env';
|
||||
if (ENVIRONMENT == 'production'){{
|
||||
$env_file = '.env.live';
|
||||
}}
|
||||
(new DotEnv($paths->appDirectory . '/../', $env_file))->load();
|
||||
}
|
||||
|
||||
protected static function defineEnvironment(): void
|
||||
|
||||
Reference in New Issue
Block a user