Authored by 毕凯

增加测试环境配置

module.exports = {
assetsUrl: '//activity.yohobuy.com',
sessionRedis: {
host: '127.0.0.1',
port: 6379,
prefix: 'activity-session-test:',
ttl: 3600 // session 默认有效期
},
sessionName: 'yoho-activity-test',
sessionSecret: 'testsession'
};
... ...
... ... @@ -16,4 +16,8 @@ if (process.env.NODE_ENV !== 'production') {
config = Object.assign(config, require('./config.dev'));
}
if (process.env.NODE_ENV !== 'test') {
config = Object.assign(config, require('./config.test'));
}
module.exports = config;
... ...