|
@@ -33,9 +33,9 @@ module.exports = appInfo => {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
// 数据库设置
|
|
// 数据库设置
|
|
- config.dbName = 'point_shopping';
|
|
|
|
|
|
+ config.dbName = 'point_shopping-dev';
|
|
config.mongoose = {
|
|
config.mongoose = {
|
|
- url: `mongodb://127.0.0.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
|
|
|
|
|
|
+ url: `mongodb://120.48.146.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
|
|
options: {
|
|
options: {
|
|
user: 'admin',
|
|
user: 'admin',
|
|
pass: 'admin',
|
|
pass: 'admin',
|
|
@@ -59,7 +59,7 @@ module.exports = appInfo => {
|
|
port: 6379, // Redis port
|
|
port: 6379, // Redis port
|
|
host: '127.0.0.1', // Redis host
|
|
host: '127.0.0.1', // Redis host
|
|
password: '123456',
|
|
password: '123456',
|
|
- db: 1,
|
|
|
|
|
|
+ db: 2,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
// mq设置
|
|
// mq设置
|
|
@@ -75,20 +75,20 @@ module.exports = appInfo => {
|
|
};
|
|
};
|
|
// 定时任务机制设置
|
|
// 定时任务机制设置
|
|
config.taskMqConfig = {
|
|
config.taskMqConfig = {
|
|
- ex: 'task',
|
|
|
|
- queue: 'task',
|
|
|
|
- routingKey: 'tr',
|
|
|
|
- deadEx: 'deadTask',
|
|
|
|
- deadQueue: 'deadTaskQueue',
|
|
|
|
- deadLetterRoutingKey: 'deadTr',
|
|
|
|
|
|
+ ex: 'taskDev',
|
|
|
|
+ queue: 'taskDev',
|
|
|
|
+ routingKey: 'trDev',
|
|
|
|
+ deadEx: 'deadTaskDev',
|
|
|
|
+ deadQueue: 'deadTaskQueueDev',
|
|
|
|
+ deadLetterRoutingKey: 'deadTrDev',
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
// 路由设置
|
|
// 路由设置
|
|
- config.routePrefix = '/point/v1/api';
|
|
|
|
|
|
+ config.routePrefix = '/dev/point/v1/api';
|
|
// 支付路由回调设置
|
|
// 支付路由回调设置
|
|
config.payReturn = {
|
|
config.payReturn = {
|
|
- order: id => `/point/v1/api/pay/order/${id}`,
|
|
|
|
|
|
+ order: id => `/dev/point/v1/api/pay/order/${id}`,
|
|
};
|
|
};
|
|
|
|
|
|
// http请求前缀
|
|
// http请求前缀
|