Commit 5b4c96c1 authored by tywldx's avatar tywldx

config

parent 03386b22
......@@ -34,9 +34,10 @@ function getIp() {
getIp();
console.log("配置文件获取IP",ip)
let vhost = {};
let static_ip = "192.168.4.27";
if(env == "debug"){
ip = "192.168.4.27"
ip = static_ip
}
vhost[ip] = 'blackPearl';
......@@ -109,7 +110,7 @@ module.exports = makeConfig({
// mongoose 配置
},
api: {
'blackPearl': `mongodb://localhost:27017/blackPearl`
'blackPearl': `mongodb://${static_ip}:27017/blackPearl`
}
},
......
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