Commit 090de391 authored by tywldx's avatar tywldx

修改了config的debugIP管理地址

parent 5666b0d9
"use strict";
process.env.DEBUG = process.env.DEBUG || '*';
let env = process.env.BP_ENV;
const serverConfig = require('./server.json');
const makeConfig = require('../src/utils').makeConfig;
var os = require('os');
......@@ -34,6 +34,10 @@ function getIp() {
getIp();
console.log("配置文件获取IP",ip)
let vhost = {};
if(env == "debug"){
ip = "172.30.199.2"
}
vhost[ip] = 'blackPearl';
let path = {
......@@ -100,7 +104,7 @@ module.exports = makeConfig({
// mongoose 配置
},
api: {
'blackPearl': 'mongodb://172.30.199.2:27017/blackPearl'
'blackPearl': `mongodb://${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