Commit b551fa0c authored by 郝聪敏's avatar 郝聪敏

feature: 区分线上和测试环境

parent 19f7de91
......@@ -13,7 +13,7 @@ export default (appInfo: EggAppConfig) => {
dir: '/home/quant_group/logs',
};
exports.sequelize = {
const prodMysqlConfig = {
dialect: 'mysql',
username: 'low_code_w',
password: 'B2pRHuGMLBNybuKp',
......@@ -22,5 +22,16 @@ export default (appInfo: EggAppConfig) => {
database: 'low_code',
};
const localMysqlConfig = {
dialect: 'mysql',
username: 'qa',
password: 'qatest',
host: '172.17.5.9',
port: 31024,
database: 'low_code',
};
exports.sequelize = process.env.SENTRY_ENV ? localMysqlConfig : prodMysqlConfig;
return exports;
};
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