Skip to content

Commit

Permalink
chore: update editor deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Oct 27, 2019
1 parent 8adfef6 commit f9342b5
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions front-end/h5/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,2 @@
#!/usr/bin/env sh
# deploy guide: https://cli.vuejs.org/guide/deployment.html#platform-guides

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd dist

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master

# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f [email protected]:ly525/luban-h5.git master:gh-pages

cd -
scp -r dist/* centos@aliyun:/home/centos/codebase/luban/luban-h5-dist/front-end

0 comments on commit f9342b5

Please sign in to comment.