增加APP_AUTO_RUN常量,入口文件定义true取代\think\App::run();懒出新高度:)

This commit is contained in:
huangdijia
2016-01-25 13:59:15 +08:00
parent ec10e55eb7
commit b3ad62a329
2 changed files with 6 additions and 0 deletions

View File

@@ -46,3 +46,8 @@ if (APP_HOOK && isset($mode['tags'])) {
if (APP_AUTO_BUILD && is_file(APP_PATH . 'build.php')) {
Build::run(include APP_PATH . 'build.php');
}
// 是否自动运行
if (APP_AUTO_RUN) {
App::run();
}