Browse Source

ci: 修改部署配置项

zhangyuhan 5 years ago
parent
commit
9a94acdb1c
4 changed files with 7 additions and 5 deletions
  1. 2 2
      .drone.yml
  2. 2 2
      .env.production
  3. 2 0
      .gitignore
  4. 1 1
      vue.config.js

+ 2 - 2
.drone.yml

@@ -1,5 +1,5 @@
 kind: pipeline
-name: 完整的使用示例
+name: 剑鱼伙伴-测试环境
 
 steps:
   # 环境依赖相关
@@ -78,7 +78,7 @@ steps:
       target:
         from_secret: ssh_remote_dir
       source:
-        - dist/*
+        - page_partner/*
   # 通知相关
   - name: notification-success
     pull: if-not-exists

+ 2 - 2
.env.production

@@ -1,3 +1,3 @@
 NODE_ENV=production
-VUE_APP_BASE_API = '/online/api'
-BASE_URL = '/online/page/'
+VUE_APP_BASE_API = ''
+BASE_URL = '/page_partner/'

+ 2 - 0
.gitignore

@@ -20,3 +20,5 @@ pnpm-debug.log*
 *.njsproj
 *.sln
 *.sw?
+online
+page_partner

+ 1 - 1
vue.config.js

@@ -39,7 +39,7 @@ module.exports = {
   publicPath: process.env.BASE_URL,
   parallel: false,
   productionSourceMap: false,
-  outputDir: 'datareport',
+  outputDir: 'page_partner',
   devServer: {
     port: '8080',
     open: false,