dygapp 5 years ago
parent
commit
03eb1e2edf
2 changed files with 14 additions and 13 deletions
  1. 7 6
      config/config.default.js
  2. 7 7
      package.json

+ 7 - 6
config/config.default.js

@@ -1,7 +1,7 @@
 'use strict';
 
 module.exports = appInfo => {
-  const config = exports = {};
+  const config = (exports = {});
 
   // use for cookie sign key, should change to your own and keep security
   config.keys = appInfo.name + '_1517455121740_8202';
@@ -11,15 +11,15 @@ module.exports = appInfo => {
 
   config.cluster = {
     listen: {
-      port: 8202,
-    },
+      port: 8105
+    }
   };
 
   config.errorMongo = {
-    details: true,
+    details: true
   };
   config.errorHanler = {
-    details: true,
+    details: true
   };
 
   // mongoose config
@@ -31,7 +31,8 @@ module.exports = appInfo => {
       authSource: 'admin',
       useNewUrlParser: true,
       useCreateIndex: true,
-    },
+      useUnifiedTopology: true,
+    }
   };
 
   return config;

+ 7 - 7
package.json

@@ -7,16 +7,16 @@
     "framework": "naf-framework-mongoose"
   },
   "dependencies": {
-    "naf-framework-mongoose": "^0.6.1"
+    "naf-framework-mongoose": "^0.6.12"
   },
   "devDependencies": {
-    "autod": "^3.0.1",
+    "autod": "^3.1.0",
     "autod-egg": "^1.1.0",
-    "egg-bin": "^4.11.1",
-    "egg-ci": "^1.11.0",
-    "egg-mock": "^3.22.1",
-    "eslint": "^5.15.3",
-    "eslint-config-egg": "^7.2.0",
+    "egg-bin": "^4.13.2",
+    "egg-ci": "^1.13.0",
+    "egg-mock": "^3.24.1",
+    "eslint": "^6.5.1",
+    "eslint-config-egg": "^7.5.1",
     "eslint-config-egg-naf": "0.0.3",
     "webstorm-disable-index": "^1.2.0"
   },