zeanium-node
Advanced tools
Comparing version 0.6.17 to 0.6.18
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.17", | ||
"version": "0.6.18", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/yangyxu/Zeanium-Node.git" | ||
"url": "https://github.com/yangyxu/zeanium-node.git" | ||
}, | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"mysql": "^2.13.0", | ||
"zeanium": "^1.1.22" | ||
"zeanium": "^1.1.23" | ||
}, | ||
@@ -40,0 +40,0 @@ "preferGlobal": "true", |
@@ -46,8 +46,4 @@ /** | ||
this.__resetWatchCwd(); | ||
this._apps = {}; | ||
this._routers = {}; | ||
this._collections = {}; | ||
this._changedFiles = []; | ||
this.__init(); | ||
this._uuid = zn.uuid(); | ||
this._deployDelay = 0; | ||
this._prefix = _config.prefix || '@'; | ||
@@ -61,2 +57,9 @@ this._root = 'http://' + _config.host + ":" + _config.port; | ||
}, | ||
__init: function (){ | ||
this._apps = {}; | ||
this._routers = {}; | ||
this._collections = {}; | ||
this._changedFiles = []; | ||
this._deployDelay = 0; | ||
}, | ||
__resetWatchCwd: function () { | ||
@@ -114,3 +117,2 @@ var _main = '', | ||
var _app = this._apps[_deploy]; | ||
if(_app){ | ||
@@ -159,2 +161,11 @@ zn.extend(app._routers, _app._routers); | ||
} else { | ||
//第一次扫描系统的项目 | ||
this.__scanWebRoot(this._serverPath + zn.SLASH + 'www' + zn.SLASH, function (){ | ||
//第二次扫描用户的项目 | ||
this.__scanWebRoot(_webPath, function (){ | ||
this.__onLoaded(_webPath); | ||
}.bind(this)); | ||
}.bind(this)); | ||
/* | ||
if(isRedeploy){ | ||
@@ -165,10 +176,4 @@ this.__scanWebRoot(_webPath, function (){ | ||
} else { | ||
//第一次扫描系统的项目 | ||
this.__scanWebRoot(this._serverPath + zn.SLASH + 'www' + zn.SLASH, function (){ | ||
//第二次扫描用户的项目 | ||
this.__scanWebRoot(_webPath, function (){ | ||
this.__onLoaded(_webPath); | ||
}.bind(this)); | ||
}.bind(this)); | ||
} | ||
}*/ | ||
} | ||
@@ -179,4 +184,2 @@ }, | ||
_self = this; | ||
this._apps = {}; | ||
this._routers = {}; | ||
this._scanner.scanWebRoot(path, function (appContext){ | ||
@@ -225,3 +228,3 @@ _self.registerApplication(appContext); | ||
zn.info('Redeploying......'); | ||
this._changedFiles = []; | ||
this.__init(); | ||
return this.__scanWebPath(true); | ||
@@ -228,0 +231,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5974
254133
Updatedzeanium@^1.1.23