Commit 1542d15c0cb663c5aed20497edee046d98d4f4c6
1 parent
1595ec6f
deploy landing-page to gitee
Showing
3 changed files
with
25 additions
and
3 deletions
front-end/landing-page/.umirc.js
| 1 | export default { | 1 | export default { |
| 2 | + publicPath: "/luban-h5/", | ||
| 2 | history: 'hash', | 3 | history: 'hash', |
| 3 | disableCSSModules: true, | 4 | disableCSSModules: true, |
| 4 | plugins: [ | 5 | plugins: [ |
| 5 | [ | 6 | [ |
| 6 | 'umi-plugin-react', { | 7 | 'umi-plugin-react', { |
| 7 | - dynamicImport: true, | 8 | + // dynamicImport: true, |
| 8 | antd: true, | 9 | antd: true, |
| 9 | } | 10 | } |
| 10 | ], | 11 | ], |
front-end/landing-page/deploy.sh
| 1 | -scp -r dist/* centos@aliyun:/home/centos/codebase/luban/luban-h5-dist/landing-page | ||
| 2 | \ No newline at end of file | 1 | \ No newline at end of file |
| 2 | +# scp -r dist/* centos@aliyun:/home/centos/codebase/luban/luban-h5-dist/landing-page | ||
| 3 | + | ||
| 4 | +# 生成静态文件 | ||
| 5 | +npm run build | ||
| 6 | + | ||
| 7 | +# 进入生成的文件夹 | ||
| 8 | +cd dist | ||
| 9 | + | ||
| 10 | +# 如果是发布到自定义域名 | ||
| 11 | +# echo 'www.example.com' > CNAME | ||
| 12 | + | ||
| 13 | +git init | ||
| 14 | +git add -A | ||
| 15 | +git commit -m 'deploy' | ||
| 16 | + | ||
| 17 | +# 如果发布到 https://<USERNAME>.github.io | ||
| 18 | +# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master | ||
| 19 | + | ||
| 20 | +# 如果发布到 https://<USERNAME>.github.io/<REPO> | ||
| 21 | +git push -f git@gitee.com:ly525/luban-h5.git master:gh-pages-landing-page | ||
| 22 | + | ||
| 23 | +cd - | ||
| 3 | \ No newline at end of file | 24 | \ No newline at end of file |
front-end/landing-page/package.json