[DEPRECATED]JsGen is a next generation,free, open source web software that you can generate a powerful website, such as blog, forum, etc. It is coded by pure JavaScript, based on Node.js, AngularJS, MongoDB.
restlog_main.log文件内容:
[2014-02-22 21:48:02.457] [ERROR] angularjs.cn - { [Error: URL must be in the format mongodb://user:pass@host:port/dbname] domainThrown: true }
Error: URL must be in the format mongodb://user:pass@host:port/dbname
at Error ()
at exports.parse (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/url_parser.js:15:11)
at Function.MongoClient.connect (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/mongo_client.js:167:16)
at SkinClass.SkinDb._open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/db.js:36:25)
at SkinClass.open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/utils.js:127:14)
at SkinClass.(anonymous function) as createCollection
at then.then.collection.ensureIndex._id (/Users/Joe/Downloads/jsgen-master/api/install.js:10:22)
at /Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:170:9
at process._tickDomainCallback (node.js:459:13)
restlog_main.log文件内容: [2014-02-22 21:48:02.457] [ERROR] angularjs.cn - { [Error: URL must be in the format mongodb://user:pass@host:port/dbname] domainThrown: true } Error: URL must be in the format mongodb://user:pass@host:port/dbname at Error ()
at exports.parse (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/url_parser.js:15:11)
at Function.MongoClient.connect (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/mongo_client.js:167:16)
at SkinClass.SkinDb._open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/db.js:36:25)
at SkinClass.open (/Users/Joe/Downloads/jsgen-master/node_modules/mongoskin/lib/utils.js:127:14)
at SkinClass.(anonymous function) as createCollection
at then.then.collection.ensureIndex._id (/Users/Joe/Downloads/jsgen-master/api/install.js:10:22)
at /Users/Joe/Downloads/jsgen-master/node_modules/thenjs/then.js:170:9
at process._tickDomainCallback (node.js:459:13)
修改dao/mongodao.js 文件中: module.exports = { db: jsGen.module.mongoskin.db('mongodb://'+mongoIp + ':' + mongoPort + '/?auto_reconnect=true', { database: mongoDbName }) 后再次运行 node app.js install 后restlog_main.log文件内容: [2014-02-22 21:51:36.828] [ERROR] angularjs.cn - { [TypeError: Property 'initGlobalConfig' of object #