Merge branch 'hotfix/cdn' into develop

Former-commit-id: 65ac319d80e6c3981d7c85e0d4c050db3bdc3f01
This commit is contained in:
liyang
2018-10-24 18:15:17 +08:00
5 changed files with 30 additions and 9 deletions
+9 -8
View File
@@ -1,5 +1,6 @@
language: node_js
node_js: stable
cache:
directories:
- "node_modules"
@@ -11,11 +12,11 @@ branches:
script:
- npm run build:travis
deploy:
provider: pages
local-dir: dist
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
before_install:
- ./qshell account $AK $SK
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
after_success:
- ./qshell qupload qiniu-config
- ./qshell cdnrefresh -dirs cdnrefresh-dirs.txt
+1
View File
@@ -0,0 +1 @@
https://start-kit.d2admin.fairyever.com/
+18
View File
@@ -0,0 +1,18 @@
{
"src_dir" : "/home/travis/build/d2-projects/d2-admin-start-kit/dist",
"bucket" : "d2-admin-start-kit",
"ignore_dir" : false,
"overwrite" : true,
"check_exists" : true,
"check_hash" : true,
"check_size" : true,
"rescan_local" : true,
"skip_file_prefixes" : "test,demo,",
"skip_path_prefixes" : "hello/,temp/",
"skip_fixed_strings" : ".svn,.git",
"skip_suffixes" : ".DS_Store,.exe",
"log_file" : "upload.log",
"log_level" : "info",
"log_rotate" : 1,
"log_stdout" : false
}
+1
View File
@@ -0,0 +1 @@
fd53ac81035ca2b6e7b5252caed08eff24e23002
+1 -1
View File
@@ -8,7 +8,7 @@ function resolve (dir) {
// 基础路径 注意发布之前要先修改这里
let baseUrl = '/'
// 演示项目自动构建使用
if (process.env.VUE_APP_TRAVIS === 'TRUE') baseUrl = '/d2-admin-start-kit/'
if (process.env.VUE_APP_TRAVIS === 'TRUE') baseUrl = '/'
module.exports = {
baseUrl: baseUrl, // 根据你的实际情况更改这里