fix config overrides in docker
This commit is contained in:
parent
a97f80446e
commit
e2d7e005e1
|
|
@ -15,13 +15,13 @@ if ($dbUrlParser->isEnvironmentVariableDefined()) {
|
||||||
define('DB_NAME', $dbSettings['database']);
|
define('DB_NAME', $dbSettings['database']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$config_file = implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'config.php'));
|
$config_file = implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'data', 'config.php'));
|
||||||
|
|
||||||
if (file_exists($config_file)) {
|
if (file_exists($config_file)) {
|
||||||
require $config_file;
|
require $config_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
$config_file = implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'data', 'config.php'));
|
$config_file = implode(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'config.php'));
|
||||||
|
|
||||||
if (file_exists($config_file)) {
|
if (file_exists($config_file)) {
|
||||||
require $config_file;
|
require $config_file;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue