MaiXinRong 5 years ago
parent
commit
47881a211f
2 changed files with 5 additions and 18 deletions
  1. 4 17
      config/config.qa.js
  2. 1 1
      package.json

+ 4 - 17
config/config.qa.js

@@ -17,9 +17,9 @@ module.exports = appInfo => {
             // 端口号
             port: '3306',
             // 用户名
-            user: 'root',
+            user: 'zh_calc',
             // 密码
-            password: 'root',
+            password: 'calc2019',
             // 数据库名
             database: 'calculation',
         },
@@ -34,18 +34,15 @@ module.exports = appInfo => {
     // redis设置
     config.redis = {
         client: {
-            host: '192.168.1.70',
+            host: '127.0.0.1',
             port: '6379',
-            password: 'test',
+            password: 'zongheng2019',
             db: '0',
         },
         agent: true,
         version: '1.0.0',
     };
 
-    //config.filePath = appInfo.baseDir + '/app/public/files';
-    config.filePath = '//Mai/share_calc';
-
     // session配置
     config.session = {
         key: 'ZHC_SESS',
@@ -56,15 +53,5 @@ module.exports = appInfo => {
         rolling: true, // 每次都更新session有效期
     };
 
-    // 是否压缩替换前端js
-    config.min = false;
-
-    config.logger = {
-        consoleLevel: 'WARN',
-        disableConsoleAfterReady: false,
-    };
-
-    config.is_debug = true;
-
     return config;
 };

+ 1 - 1
package.json

@@ -60,7 +60,7 @@
     "stop": "egg-scripts stop",
     "start-qa": "set EGG_SERVER_ENV=qa&&egg-scripts start --daemon --port 7002",
     "dev": "egg-bin dev --port 7002",
-    "dev-local": "set EGG_SERVER_ENV=qa&&egg-bin dev --port 7002",
+    "dev-local": "set EGG_SERVER_ENV=local&&egg-bin dev --port 7002",
     "dev-qa": "set EGG_SERVER_ENV=qa&&egg-bin dev --port 7002",
     "dev-test": "set EGG_SERVER_ENV=test&&egg-bin dev --port 7002",
     "test": "npm run lint -- --fix&&npm run test-local",