Commit ae494f25 authored by 智勇's avatar 智勇

项目配置不查询海外,按服役排序

parent da3757b6
...@@ -125,10 +125,10 @@ exports.fllush_redis.__method__ = 'get'; ...@@ -125,10 +125,10 @@ exports.fllush_redis.__method__ = 'get';
exports.get_project_by_type = async function () { exports.get_project_by_type = async function () {
await this.bindDefault(); await this.bindDefault();
let re = []; let re = [];
let javas = await this.mongo("ProConfig").getProjectByQuery({ type: "java" }, { project_name: 1 }); let javas = await this.mongo("ProConfig").getProjectByQuery({ type: "java", des: { $ne: '海外' } }, { is_active: -1, project_name: 1 });
let uis = await this.mongo("ProConfig").getProjectByQuery({ type: "ui" }, { project_name: 1 }); let uis = await this.mongo("ProConfig").getProjectByQuery({ type: "ui", des: { $ne: '海外' } }, { is_active: -1, project_name: 1 });
let nodes = await this.mongo("ProConfig").getProjectByQuery({ type: "node" }, { project_name: 1 }); let nodes = await this.mongo("ProConfig").getProjectByQuery({ type: "node", des: { $ne: '海外' } }, { is_active: -1, project_name: 1 });
let pythons = await this.mongo("ProConfig").getProjectByQuery({ type: "python" }, { project_name: 1 }); let pythons = await this.mongo("ProConfig").getProjectByQuery({ type: "python", des: { $ne: '海外' } }, { is_active: -1, project_name: 1 });
re.push({ name: "java", data: javas }); re.push({ name: "java", data: javas });
re.push({ name: "ui", data: uis }); re.push({ name: "ui", data: uis });
......
...@@ -13,3 +13,61 @@ ...@@ -13,3 +13,61 @@
[2018-04-27T11:37:41.194] [INFO] cheese - active: db_sync namespace: chenxingchun sync_db_name: cash_loan_flow not_delete_business_data: true use_cache: true user: undefined [2018-04-27T11:37:41.194] [INFO] cheese - active: db_sync namespace: chenxingchun sync_db_name: cash_loan_flow not_delete_business_data: true use_cache: true user: undefined
[2018-04-27T11:38:31.811] [INFO] cheese - active: db_sync namespace: chenxingchun sync_db_name: cash_loan_flow not_delete_business_data: true use_cache: true user: undefined [2018-04-27T11:38:31.811] [INFO] cheese - active: db_sync namespace: chenxingchun sync_db_name: cash_loan_flow not_delete_business_data: true use_cache: true user: undefined
[2018-04-27T11:38:55.907] [INFO] cheese - active: db_sync namespace: chenxingchun sync_db_name: cash_loan_flow not_delete_business_data: false use_cache: true user: undefined [2018-04-27T11:38:55.907] [INFO] cheese - active: db_sync namespace: chenxingchun sync_db_name: cash_loan_flow not_delete_business_data: false use_cache: true user: undefined
[2018-10-10T17:07:36.367] [INFO] cheese - { namespace: '',
active: 'update_proconfig',
microservice_name: 'baitiao-guangda',
user: 'undefined',
user_mail: 'undefined',
detail:
{ git_lab: 'git.quantgroup.cn',
port: 7089,
is_active: true,
type: 'java',
git_path: 'git@git.quantgroup.cn:baitiao/baitiao-guangda.git',
git_path_group: 'baitiao',
project_name: 'baitiao-guangda',
host_name: 'gdxd-bt.xyqb.com',
log_path: 'baitiao-guangda.log',
config_path: 'application.properties',
des: 'guangda-server',
auth: '',
jar_path: './target',
command1: '',
command2: '',
command3: '',
command4: '',
command5: '',
build_command: 'mvn clean package -Ptest -Dmaven.test.skip=true',
start_command:
'nohup java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/baitiao-guangda.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar baitiao-guangda.jar --worker 1 --currentWorker 1 -t',
stop_command: '' },
create_time: 2018-10-10T09:07:36.360Z }
[2018-10-10T17:08:12.195] [INFO] cheese - { namespace: '',
active: 'update_proconfig',
microservice_name: 'baitiao-guangda',
user: 'undefined',
user_mail: 'undefined',
detail:
{ git_lab: 'git.quantgroup.cn',
port: 7089,
is_active: false,
type: 'java',
git_path: 'git@git.quantgroup.cn:baitiao/baitiao-guangda.git',
git_path_group: 'baitiao',
project_name: 'baitiao-guangda',
host_name: 'gdxd-bt.xyqb.com',
log_path: 'baitiao-guangda.log',
config_path: 'application.properties',
des: 'guangda-server',
auth: '',
jar_path: './target',
command1: '',
command2: '',
command3: '',
command4: '',
command5: '',
build_command: 'mvn clean package -Ptest -Dmaven.test.skip=true',
start_command:
'nohup java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/baitiao-guangda.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar baitiao-guangda.jar --worker 1 --currentWorker 1 -t',
stop_command: '' },
create_time: 2018-10-10T09:08:12.194Z }
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