Commit 6a333c9b authored by 郝聪敏's avatar 郝聪敏

test: 区分测试环境

parent 417b1f9d
......@@ -22,7 +22,18 @@ export default (appInfo: EggAppConfig) => {
database: 'low_code',
};
exports.sequelize = prodMysqlConfig;
const localMysqlConfig = {
dialect: 'mysql',
username: 'qa',
password: 'qatest',
host: '172.17.5.9',
port: 31024,
database: 'low_code',
};
console.log('process.env.NODE_ENV', process.env.NAMESPACE);
exports.sequelize = process.env.NAMESPACE ? 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