Commit 3e5e31ac by 蒋勇

d

parent 219a4c23
const mongoose = require('mongoose') const mongoose = require('mongoose')
class MgDbFactory { class MgDbFactory {
constructor() { constructor() {
const reqUrl = "mongodb://wdy1:123456@43.247.184.94:27017/phones"; const reqUrl = "mongodb://wdy1:123456@43.247.184.157:13311/phones";
this.mgdb = mongoose.connect(reqUrl, { useNewUrlParser: true }); this.mgdb = mongoose.connect(reqUrl, { useNewUrlParser: true });
} }
......
var settings = { var settings = {
redis: { redis: {
host: "121.36.3.35", host: "59.110.125.77",
port: 8967, port: 30479,
password: "Gongsibao2018", password: "havzMSYc3aBZXOjpG3",
db: 13, db: 13,
}, },
database: { database: {
......
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