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
front-end/landing-page/deploy.sh
| 1 | -scp -r dist/* centos@aliyun:/home/centos/codebase/luban/luban-h5-dist/landing-page | |
| 2 | 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 | 24 | \ No newline at end of file | ... | ... |