Commit b5534cc3 authored by tywldx's avatar tywldx

f

parent be78a7a4
...@@ -212,7 +212,7 @@ exports.get_device = async function () { ...@@ -212,7 +212,7 @@ exports.get_device = async function () {
tem.console = true tem.console = true
} }
if (hosts[k] != undefined) { if (hosts[k] != undefined) {
tem.host = hosts[k].replace(".xyqb.com", `-${self.request.query.namespace}.q-gp.com`).replace(".quantgroup.cn", `-${self.request.query.namespace}.q-gp.com`) tem.host = hosts[k].replace(".xyqb.com", `-${self.request.query.namespace}.liangkebang.com`).replace(".quantgroup.cn", `-${self.request.query.namespace}.liangkebang.com`)
} }
if ((k === "traefik") || (k.indexOf("redis") != -1) || (k === "db") || (k === "rabbitmq") || (k === "zookeeper")) { if ((k === "traefik") || (k.indexOf("redis") != -1) || (k === "db") || (k === "rabbitmq") || (k === "zookeeper")) {
tem.ports = items[k].ports tem.ports = items[k].ports
......
...@@ -325,7 +325,7 @@ function getInfo(pid, bank) { ...@@ -325,7 +325,7 @@ function getInfo(pid, bank) {
let get_person_from_acs = function () { let get_person_from_acs = function () {
// 老环境获取pod内容 // 老环境获取pod内容
this.url = `http://acs.q-gp.com/faker/a_person`; this.url = `http://acs.liangkebang.com/faker/a_person`;
this.method = "GET" this.method = "GET"
} }
......
...@@ -30,7 +30,7 @@ getIp(); ...@@ -30,7 +30,7 @@ getIp();
let vhost = {}; let vhost = {};
vhost[ip] = 'qa-home'; vhost[ip] = 'qa-home';
vhost['qa.q-gp.com'] = 'qa-home'; vhost['qa.liangkebang.com'] = 'qa-home';
......
...@@ -13,7 +13,25 @@ log4js.configure({ ...@@ -13,7 +13,25 @@ log4js.configure({
categories: { default: { appenders: ['cheese'], level: 'info' } } categories: { default: { appenders: ['cheese'], level: 'info' } }
}); });
const logger = log4js.getLogger('cheese'); const _logger = log4js.getLogger('cheese');
// mongo 链接操作。 moogose
var logger = {
info: ()=>{
// mongo操作
_logger.info(arguments)
},debug: ()=>{
// mongo操作
_logger.debug(arguments)
},error: () =>{
// mongo操作
_logger.error(arguments)
}
};
// compress(gzip) // compress(gzip)
......
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