Commit 244a1ce6 Harvey

no message

1 个父辈 e75ad428
......@@ -11,5 +11,6 @@ app.use(require('body-parser').json());
new (require("./xxl_job/index").XxlJobExecutor)(config.xxl_job, require('./job').job_handlers).applyMiddleware({ app, domain: config.app_domain });
app.listen(config.port, () => {
console.log(`job-ydn-zq app listening on port ${config.port}`);
console.log(`job-ydn-zq app listening on url ${config.app_domain}`);
});
//# sourceMappingURL=index.js.map
\ No newline at end of file
......@@ -181,7 +181,9 @@ class Executor {
'XXL-JOB-ACCESS-TOKEN': this.accessToken,
'Content-Type': 'application/json'
}
}).then((response) => console.log('执行器注册成功:', response.data)).catch(error => console.error('执行器注册失败:', error.message));
}).then((response) => {
// console.log('执行器注册成功:', response.data);
}).catch(error => console.error('执行器注册失败:', error.message));
}
/**
* 执行器注册摘除:执行器注册摘除时使用,注册摘除后的执行器不参与任务调度与执行
......
......@@ -3,7 +3,6 @@ const path = require('path');
console.log('启动 frpc ...');
debugger
// 1. 启动 frpc 进程
const frpc = spawn(`${__dirname}/frpc`, ['-c', `${__dirname}/frpc.toml`], {
stdio: 'inherit' // 共享输入输出
......
......@@ -17,4 +17,5 @@ new (require("./xxl_job/index").XxlJobExecutor)(
app.listen(config.port, () => {
console.log(`job-ydn-zq app listening on port ${config.port}`)
console.log(`job-ydn-zq app listening on url ${config.app_domain}`)
})
......@@ -214,7 +214,9 @@ export class Executor {
'XXL-JOB-ACCESS-TOKEN': this.accessToken,
'Content-Type': 'application/json'
}
}).then((response) => console.log('执行器注册成功:', response.data)).catch(error => console.error('执行器注册失败:', error.message))
}).then((response) => {
// console.log('执行器注册成功:', response.data);
}).catch(error => console.error('执行器注册失败:', error.message))
}
/**
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!