lanjianrong 3 years ago
parent
commit
07f307bea0
2 changed files with 14 additions and 0 deletions
  1. 13 0
      deploy.config.js
  2. 1 0
      package.json

+ 13 - 0
deploy.config.js

@@ -12,6 +12,19 @@ module.exports = {
     title: '',
     content: ''
   },
+  uat: {
+    script: 'npm run build',
+    host: '39.108.111.147',
+    port: 22,
+    username: 'root',
+    password: 'SmartCost3850888',
+    localPath: 'build',
+    remotePath: '/mnt/html/management_uat/',
+    needEmail: false,
+    addressee: '',
+    title: '',
+    content: ''
+  },
   prod: {
     script: 'npm run build',
     host: '39.108.111.147',

+ 1 - 0
package.json

@@ -8,6 +8,7 @@
     "build": "node scripts/build.js",
     "test": "node scripts/test.js",
     "deploy:qa": "auto-deploy build -t qa",
+    "deploy:uat": "auto-deploy build -t uat",
     "deploy:prod": "auto-deploy build -t prod",
     "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
     "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",