From 0acd4829c5d39b81c80544f9225aee22d13e18be Mon Sep 17 00:00:00 2001 From: Charles7c Date: Sat, 28 Sep 2024 13:18:00 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=B0=83=E6=95=B4=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 8 ++++---- src/utils/http.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3fb05e4..1024d2f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,7 +41,7 @@ jobs: username: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }} source: ./dist/* - target: /docker/continew-admin/tmp + target: /tmp/html strip_components: 1 # 7、重启 Nginx - name: Restart @@ -52,6 +52,6 @@ jobs: username: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }} script: | - rm -rf /docker/continew-admin/html/* - mv /docker/continew-admin/tmp/* /docker/continew-admin/html - docker restart nginx + rm -rf ${{ secrets.SERVER_PATH }}/* + mv /tmp/html/* ${{ secrets.SERVER_PATH }} + chmod -R 777 ${{ secrets.SERVER_PATH }} diff --git a/src/utils/http.ts b/src/utils/http.ts index 6fc91c1..b97114e 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -108,6 +108,7 @@ http.interceptors.response.use( content: StatusCodeMessage[response.status] || '服务器暂时未响应,请刷新页面并重试。若无法解决,请联系管理员', duration: 5 * 1000 }) + console.log(response.status) return Promise.reject(error) } )