Browse Source

Merge branch 'master' of http://git.cc-lotus.info/service-platform/service-live

lrf402788946 5 years ago
parent
commit
4f0569d872
3 changed files with 28 additions and 5 deletions
  1. 23 0
      config/config.prod.js
  2. 4 4
      config/plugin.js
  3. 1 1
      ecosystem.config.js

+ 23 - 0
config/config.prod.js

@@ -8,5 +8,28 @@ module.exports = () => {
     // consoleLevel: 'DEBUG',
   };
 
+  config.mongoose = {
+    url: 'mongodb://localhost:27017/platform',
+    options: {
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
+      useUnifiedTopology: true,
+    },
+  };
+
+  config.amqp = {
+    client: {
+      hostname: '127.0.0.1',
+      username: 'visit',
+      password: 'visit',
+      vhost: 'visit',
+    },
+    app: true,
+    agent: true,
+  };
+
   return config;
 };

+ 4 - 4
config/plugin.js

@@ -1,7 +1,7 @@
 'use strict';
 
 /** @type Egg.EggPlugin */
-// exports.amqp = {
-//   enable: true,
-//   package: 'egg-naf-amqp',
-// };
+exports.amqp = {
+  enable: true,
+  package: 'egg-naf-amqp',
+};

+ 1 - 1
ecosystem.config.js

@@ -1,6 +1,6 @@
 'use strict';
 
-const app = 'service-market';
+const app = 'service-live';
 module.exports = {
   apps: [{
     name: app, // 应用名称