Commit ca689aab by 宋毅

tj

parent 3021128e
......@@ -6,12 +6,12 @@ var glob = require("glob");
class DbFactory {
constructor() {
const dbConfig = settings.database();
dbConfig.reconnect = {
max_retries: 10,
onRetry: function (count) {
console.log("connection lost, trying to reconnect (" + count + ")");
}
};
// dbConfig.reconnect = {
// max_retries: 10,
// onRetry: function (count) {
// console.log("connection lost, trying to reconnect (" + count + ")");
// }
// };
this.db = new Sequelize(dbConfig.dbname,
dbConfig.user,
dbConfig.password,
......
......@@ -25,6 +25,7 @@ var settings = {
},
redis: function () {
if (this.env == "dev" || this.env == "test") {
console.log("myredis-service", "............ENVINPUT.REDIS_HOST.........");
var localsettings = require("./localsettings");
return localsettings.redis;
} else {
......@@ -64,11 +65,11 @@ var settings = {
idle: 1000000
},
timezone: '+08:00',
debug: false,
dialectOptions: {
requestTimeout: 999999,
// instanceName:'DEV'
} //设置MSSQL超时时间
debug: false
// dialectOptions: {
// requestTimeout: 999999,
// // instanceName:'DEV'
// } //设置MSSQL超时时间
},
};
}
......
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