Skip to content

Commit 1eb0638

Browse files
committed
部署
1 parent be7acc0 commit 1eb0638

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

project/imooc-blog/deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# build
7+
# npm run build
8+
9+
# navigate into the build output directory
10+
cd unpackage/dist/build/h5
11+
12+
# if you are deploying to a custom domain
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# if you are deploying to https://<USERNAME>.github.io
20+
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
21+
22+
# if you are deploying to https://<USERNAME>.github.io/<REPO>
23+
git push -f git@github.com:ppambler/imooc-uni-app.git main:gh-pages
24+
25+
cd -

project/imooc-blog/manifest.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
"usingComponents" : true
6161
},
6262
"h5" : {
63-
"template" : "index.html"
63+
"template" : "index.html",
64+
"router" : {
65+
"base" : "/imooc-uni-app/"
66+
}
6467
}
6568
}

0 commit comments

Comments
 (0)