浏览代码

配置修改

lrf 1 年之前
父节点
当前提交
6f18835def
共有 4 个文件被更改,包括 18 次插入14 次删除
  1. 7 3
      .github/workflows/nodejs.yml
  2. 1 1
      .travis.yml
  3. 1 1
      appveyor.yml
  4. 9 9
      config/config.default.js

+ 7 - 3
.github/workflows/nodejs.yml

@@ -5,9 +5,13 @@ name: Node.js CI
 
 on:
   push:
-    branches: [ master ]
+    branches:
+      - main
+      - master
   pull_request:
-    branches: [ master ]
+    branches:
+      - main
+      - master
   schedule:
     - cron: '0 2 * * *'
 
@@ -31,7 +35,7 @@ jobs:
         node-version: ${{ matrix.node-version }}
 
     - name: Install Dependencies
-      run: npm i -g npminstall && npminstall
+      run: npm i -g npminstall@5 && npminstall
 
     - name: Continuous Integration
       run: npm run ci

+ 1 - 1
.travis.yml

@@ -3,7 +3,7 @@ language: node_js
 node_js:
   - '10'
 before_install:
-  - npm i npminstall -g
+  - npm i npminstall@5 -g
 install:
   - npminstall
 script:

+ 1 - 1
appveyor.yml

@@ -4,7 +4,7 @@ environment:
 
 install:
   - ps: Install-Product node $env:nodejs_version
-  - npm i npminstall && node_modules\.bin\npminstall
+  - npm i npminstall@5 && node_modules\.bin\npminstall
 
 test_script:
   - node --version

+ 9 - 9
config/config.default.js

@@ -30,7 +30,7 @@ module.exports = appInfo => {
   // mq配置
   config.amqp = {
     client: {
-      hostname: '127.0.0.1',
+      hostname: '192.168.1.128',
       username: 'visit',
       password: 'visit',
       vhost: 'train',
@@ -43,8 +43,8 @@ module.exports = appInfo => {
   config.redis = {
     client: {
       port: 6379, // Redis port
-      host: '127.0.0.1', // Redis host
-      password: '',
+      host: '192.168.1.128', // Redis host
+      password: '123456',
       db: 0,
     },
   };
@@ -53,16 +53,16 @@ module.exports = appInfo => {
   config.mongoose = {
     url: 'mongodb://127.0.0.1:27017/train',
     options: {
-      // user: 'admin',
-      // pass: 'admin',
-      // authSource: 'admin',
-      // useNewUrlParser: true,
-      // useCreateIndex: true,
+      user: 'root',
+      pass: 'root',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
     },
   };
 
   config.project = {
-    center: 'http://127.0.0.1:2001',
+    center: 'http://127.0.0.1:7001',
   };
 
   // 安全配置