lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
f0f5eb24b1
Modificáronse 2 ficheiros con 12 adicións e 12 borrados
  1. 4 4
      config/config.default.js
  2. 8 8
      config/config.prod.js

+ 4 - 4
config/config.default.js

@@ -25,11 +25,11 @@ module.exports = appInfo => {
   // 进程设置
   config.cluster = {
     listen: {
-      port: 12112,
+      port: 12212,
     },
   };
   // 数据库设置
-  config.dbName = 'point_shopping';
+  config.dbName = 'point_shopping-dev';
   config.mongoose = {
     url: `mongodb://120.48.146.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
     options: {
@@ -48,7 +48,7 @@ module.exports = appInfo => {
       port: 6379, // Redis port
       host: '127.0.0.1', // Redis host
       password: '123456',
-      db: 1,
+      db: 2,
     },
   };
   // mq设置
@@ -69,7 +69,7 @@ module.exports = appInfo => {
     issuer: 'shopping',
   };
   // 路由设置
-  config.routePrefix = '/point/zr/v1/api';
+  config.routePrefix = '/dev/point/zr/v1/api';
   config.emailConfig = {
     config: 'free',
   };

+ 8 - 8
config/config.prod.js

@@ -2,7 +2,7 @@
 module.exports = appInfo => {
   const config = (exports = {});
   // 数据库设置
-  config.dbName = 'point_shopping';
+  config.dbName = 'point_shopping-dev';
   config.mongoose = {
     url: `mongodb://127.0.0.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
     options: {
@@ -18,9 +18,9 @@ module.exports = appInfo => {
   config.amqp = {
     client: {
       hostname: '127.0.0.1',
-      username: 'tehq',
-      password: 'tehq',
-      vhost: 'tehq',
+      username: 'tehqDev',
+      password: 'tehqDev',
+      vhost: 'tehqDev',
     },
     app: true,
     agent: true,
@@ -31,16 +31,16 @@ module.exports = appInfo => {
       port: 6379, // Redis port
       host: '127.0.0.1', // Redis host
       password: '123456',
-      db: 1,
+      db: 2,
     },
   };
   config.emailConfig = {
-    config: 'tehq',
+    config: 'free',
   };
   config.smsConfig = {
-    config: 'tehq',
+    config: 'free',
   };
-  config.wxPayConfig = 'tehqApp';
+  config.wxPayConfig = 'pointApp';
   return {
     ...config,
   };