From b3b63388bed05dc1a43509fb77ed5f3276bf3af0 Mon Sep 17 00:00:00 2001 From: CoderWanFeng <875143930@qq.com> Date: Sun, 20 Aug 2023 00:04:30 +0800 Subject: [PATCH] add build.sh --- build.sh | 5 ++--- docs-pages/vuepress/.vuepress/config.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 540a105a..33ad33f0 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,5 @@ cd docs-pages/ npm run build # /opt/software/node/node-v16.13.0-linux-x64/bin/yarn build -sudo mkdir /opt/website/python-office.com/ -rm -rf /opt/website/python-office.com/* -cp /opt/workplace/pro/python-office.com/dist/* /opt/website/python-office.com/ -R \ No newline at end of file +rm -rf /home/ubuntu/workplace/pro/website/python-office.com/* +cp /home/ubuntu/workplace/pro/python-office.com/dist/* /home/ubuntu/workplace/pro/website/python-office.com/ -R \ No newline at end of file diff --git a/docs-pages/vuepress/.vuepress/config.js b/docs-pages/vuepress/.vuepress/config.js index e083a630..cd6694fa 100644 --- a/docs-pages/vuepress/.vuepress/config.js +++ b/docs-pages/vuepress/.vuepress/config.js @@ -3,7 +3,7 @@ module.exports = { description: 'python-office自动化办公', port: '18001', base: '/',// 设置站点根路径 - dest: '/opt/workplace/pro/python-office.com/dist', // 设置输出目录 + dest: '/home/ubuntu/workplace/pro/python-office.com/dist', // 设置输出目录 head: [ ["link", { rel: "icon", href: "https://python-office-1300615378.cos.ap-chongqing.myqcloud.com/icon2.jpg" }],