增加应用的环境变量配置文件 增加ROOT_PATH常量定义 runtime目录默认移到ROOT_PATH录下面

This commit is contained in:
thinkphp
2016-03-23 13:53:48 +08:00
parent 16dad1e748
commit 4e0df23a4e
3 changed files with 25 additions and 6 deletions

View File

@@ -28,6 +28,9 @@ class App
*/
public static function run()
{
// 加载环境变量配置文件
Config::loadEnv(APP_PATH . 'env' . EXT);
// 初始化应用(公共模块)
self::initModule(COMMON_MODULE, Config::get());