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

test: 测试数据库

parent 8e974914
// export const basicComponents = require('@qg/cherry-ui/md/index.json'); // export const basicComponents = require('@qg/cherry-ui/md/index.json');
export const kaLoginForm = require('@qg/citrus-ui/md/index.json'); // export const kaLoginForm = require('@qg/citrus-ui/md/index.json');
export const basicComponents = [ export const basicComponents = [
{ {
......
...@@ -54,7 +54,9 @@ export default (appInfo: EggAppConfig) => { ...@@ -54,7 +54,9 @@ export default (appInfo: EggAppConfig) => {
database: 'low_code', database: 'low_code',
}; };
config.sequelize = process.env.NODE_ENV === 'production' ? prodMysqlConfig : localMysqlConfig; console.log('process.env.NODE_ENV', process.env.NODE_ENV);
exports.sequelize = process.env.NODE_ENV === 'test' ? localMysqlConfig : prodMysqlConfig;
return config; return config;
}; };
...@@ -27,25 +27,5 @@ export default (appInfo: EggAppConfig) => { ...@@ -27,25 +27,5 @@ export default (appInfo: EggAppConfig) => {
browser: 'http://localhost:7001/editor/list' browser: 'http://localhost:7001/editor/list'
}; };
// const prodMysqlConfig = {
// dialect: 'mysql',
// username: 'low_code_w',
// password: 'B2pRHuGMLBNybuKp',
// host: 'low-code-db.quantgroups.com',
// port: 3306,
// 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.NODE_ENV === 'test' ? localMysqlConfig : prodMysqlConfig;
return exports; 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