Commit b08aba5d authored by tywldx's avatar tywldx

f

parent 2da12841
......@@ -189,6 +189,7 @@ Bp_modules.route_config.init();
*/
mongoose.connect(config.mongo.api["blackPearl"]);
var db = mongoose.connection;
let init_env = true;
if(db){
var projectModel = mongoose.model("Project");
var urlModel = mongoose.model("Url");
......@@ -197,7 +198,7 @@ if(db){
var endecodeModel = mongoose.model("Endecode");
//初始化有先后顺序,必须先初始化项目URL路由规则
let init_env = true;
projectModel.find(function () {
}).populate('urls').exec().then(function (pro) {
debug("项目与URL--路由初始化")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment