Commit 934c92cc authored by 姜登's avatar 姜登

yys

parent 2df247e9
Pipeline #6945 passed with stage
in 11 seconds
module.exports = app => {
// 自定义内容
app.beforeStart(async () => {
// 应用会等待这个函数执行完成才启动
app.projectName = 'eggManual'
console.log("==app beforeStart==");
});
};
\ No newline at end of file
......@@ -26,6 +26,8 @@ module.exports = {
});
ctx.app.notifyMap = notifyMap;
}
ctx.logger.info(ctx.app.projectName)
// console.log(await ctx.helper.sendMsg({ message: 'test' }));
} catch (e) {
ctx.logger.error('【schedule/notifyUrlTask】catch error:', JSON.stringify(e));
}
......
......@@ -14,6 +14,13 @@ module.exports = () => {
db: 0,
},
};
config.JBnotifyCenter = {
baseURL: 'https://notifier.getxumi.com/api/notify',
settingid: '5ccfcb723de62900010872e2',
appSecret: 'a643bd55222b49c2a2baefa7d98679eb',
};
config.taskAPI = {
host: 'http://tm.51gjj.com:4829',
createTaskUrl: '/thxdServices/createThxdTask',
......
......@@ -12,11 +12,18 @@ module.exports = () => {
config.redis = {
client: {
port: 6379,
host: process.env.REDIS_HOST,
host: process.env.REDIS_HOST || '127.0.0.1',
password: process.env.REDIS_PWD || 'DEV8redis',
db: 0,
},
};
config.JBnotifyCenter = {
baseURL: 'https://notifier.getxumi.com/api/notify',
settingid: process.env.NOTIFY_CENTER || '5cbe89d923775d000163d384',
appSecret: 'a643bd55222b49c2a2baefa7d98679eb',
};
config.taskAPI = {
host: process.env.TASKAPI_HOST || 'http://tm.51gjj.com:4829',
createTaskUrl: '/thxdServices/createThxdTask',
......@@ -96,8 +103,8 @@ module.exports = () => {
dialect: 'mysql',
host: process.env.MYSQL_PACHONG_HOST || 'rm-bp1272001633qc0x9o.mysql.rds.aliyuncs.com',
database: process.env.MYSQL_DATA_SERVER_DB_NAME || 'data_service_dev',
username: process.env.MYSQL_USER || 'kf_jiandeng',
password: process.env.MYSQL_PWD || 'Zg23Is9c7d2uKz15abZcV',
username: process.env.MYSQL_USER || 'hexin',
password: process.env.MYSQL_PWD || 'gYUHszn9#q',
port: process.env.MYSQL_PORT || 3306,
}],
};
......
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