Env settings
This commit is contained in:
14
setup/env/config.php
vendored
14
setup/env/config.php
vendored
@ -1,6 +1,18 @@
|
||||
<?php
|
||||
use Dotenv\Dotenv;
|
||||
|
||||
$folder = dirname(__DIR__, 2);
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir() or $file->getExtension() != 'env') {
|
||||
continue;
|
||||
}
|
||||
$env = Dotenv::createImmutable($file->getPath(), $file->getBasename());
|
||||
$env->load();
|
||||
}
|
||||
|
||||
return [
|
||||
'debug' => false,
|
||||
'benchmark' => false,
|
||||
'base_url' => '/incoviba'
|
||||
'base_url' => $_ENV['BASE_URL']//'/incoviba'
|
||||
];
|
||||
|
Reference in New Issue
Block a user