Skip to content

Commit c250325

Browse files
author
陈昊天
committed
Update rebuild.sh
1 parent 156f303 commit c250325

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

source/rebuild.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
cd /var/www/html
2-
rm -rf chenhaotian.top
3-
git clone https://mirror.ghproxy.com/https://github.com/chen2438/chenhaotian.top.git
4-
cd chenhaotian.top
5-
npm install
6-
hexo clean
2+
rm -rf blog-repo
3+
4+
# git clone https://mirror.ghproxy.com/https://github.com/chen2438/chenhaotian.top.git blog-repo
5+
git clone https://mirror.vayki.com/proxy/https://github.com/chen2438/chenhaotian.top.git blog-repo
6+
7+
cd blog-repo
8+
9+
# npm cache clean --force
10+
# rm -rf node_modules/
11+
npm install --registry=https://registry.npmmirror.com/
12+
13+
# hexo clean
714
hexo generate
15+
16+
rm -rf ../chenhaotian.top/
17+
mkdir -p ../chenhaotian.top/piblic/
18+
cp -r public/ ../chenhaotian.top/public/

0 commit comments

Comments
 (0)