| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | 'use strict';/** * 开发环境相关配置 * * @author CaiAoLin * @date 2017/8/29 * @version */module.exports = appInfo => {    const config = {};    // 数据库配置    config.mysql = {        client: {            // host            host: '192.168.1.70',            // 端口号            port: '3306',            // 用户名            user: 'root',            // 密码            password: 'root',            // 数据库名            database: 'calculation',        },        // 是否加载到 app 上,默认开启        app: true,        // 是否加载到 agent 上,默认关闭        agent: false,    };    // redis设置    config.redis = {        client: {            host: '192.168.1.70',            port: '6379',            password: 'test',            db: '0',        },        agent: true,        version: '1.0.0',    };    // 前端验证    config.jsValidator = {        client: {},        app: true,    };    // 是否压缩替换前端js    config.min = true;    config.logger = {        consoleLevel: 'WARN',        disableConsoleAfterReady: false,    };    return config;};
 |