-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
33 lines (25 loc) · 1.1 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# this is a file that can help you to deploy your Vue app fast!
# please note the 'CUSTOM' tag in this file.
# you need to make some changes for yourself to deploy successfully.
# file deploy.sh
#!/usr/bin/env sh
set -e
# build command
yarn build
# CUSTOM: this is the directory of the building output.
# no need to change by default.
cd dist
cp index.html 404.html
# CUSTOM: if you are deploying to a custom domain,
# set your domain in CNAME to avoid bugs (from GitHub Page service).
# no need to change with default 'github.io' domain.
echo 'vuebp.lingxi.li' > CNAME
git init --initial-branch=development
git add -A
git commit -m 'Deploy to the GitHub Page service.'
# CUSTOM: change to the git address or https address of your target repo.
# and you will probably never be able to push into my account lol.
# CUSTOM: and, you need to change the local branch name to the corresponding one.
# mine is 'development', you can use your own if you have a different one (probably no need).
git push -f [email protected]:taci-tech/vue-next-boilerplate.git development:gh-pages
cd -