diff --git a/Core/Frameworks/Flake/Framework.php b/Core/Frameworks/Flake/Framework.php index 579e25a..347ad67 100644 --- a/Core/Frameworks/Flake/Framework.php +++ b/Core/Frameworks/Flake/Framework.php @@ -163,11 +163,25 @@ class Framework extends \Flake\Core\Framework { define("PROJECT_PATH_CORE", PROJECT_PATH_ROOT . "Core/"); define("PROJECT_PATH_CORERESOURCES", PROJECT_PATH_CORE . "Resources/"); - define("PROJECT_PATH_SPECIFIC", PROJECT_PATH_ROOT . "Specific/"); - define("PROJECT_PATH_CONFIG", PROJECT_PATH_ROOT . "config/"); define("PROJECT_PATH_FRAMEWORKS", PROJECT_PATH_CORE . "Frameworks/"); define("PROJECT_PATH_WWWROOT", PROJECT_PATH_CORE . "WWWRoot/"); + // set PROJECT_PATH_CONFIG from BAIKAL_PATH_CONFIG + $baikalPathConfig = getenv('BAIKAL_PATH_CONFIG'); + if ($baikalPathConfig !== false) { + define("PROJECT_PATH_CONFIG", $baikalPathConfig); + } else { + define("PROJECT_PATH_CONFIG", PROJECT_PATH_ROOT . "config/"); + } + + // set PROJECT_PATH_SPECIFIC from BAIKAL_PATH_CONFIG + $baikalPathConfig = getenv('BAIKAL_PATH_SPECIFIC'); + if ($baikalPathConfig !== false) { + define("PROJECT_PATH_SPECIFIC", $baikalPathConfig); + } else { + define("PROJECT_PATH_SPECIFIC", PROJECT_PATH_ROOT . "Specific/"); + } + require_once PROJECT_PATH_CORE . "Distrib.php"; define("PROJECT_PATH_DOCUMENTROOT", PROJECT_PATH_ROOT . "html/");