From 56ef979e3a7a58898a5f779bd7115e08c3f3a9d6 Mon Sep 17 00:00:00 2001 From: Yar Bash Date: Sun, 24 Nov 2024 15:51:26 +0300 Subject: [PATCH] test-deploy v.42 --- .github/workflows/test-deployment.yml | 7 +++++-- scripts/copy2site.sh | 3 --- vite.config.ts | 13 ------------- 3 files changed, 5 insertions(+), 18 deletions(-) delete mode 100755 scripts/copy2site.sh diff --git a/.github/workflows/test-deployment.yml b/.github/workflows/test-deployment.yml index 0948715..42e6369 100644 --- a/.github/workflows/test-deployment.yml +++ b/.github/workflows/test-deployment.yml @@ -44,6 +44,9 @@ jobs: key: ${{ secrets.SERVER_SSH_KEY }} port: ${{ secrets.SERVER_SSH_PORT }} script_path: ./scripts/copy2site.sh + script: | + rm -rf /var/www/webface + mkdir /var/www/webface - name: Copy build to production server uses: appleboy/scp-action@v0.1.7 with: @@ -51,5 +54,5 @@ jobs: username: ${{ secrets.USERNAME }} key: ${{ secrets.SERVER_SSH_KEY }} port: ${{ secrets.SERVER_SSH_PORT }} - source: webface/* - target: /var/www/ + source: dist/* + target: /var/www/webface/ diff --git a/scripts/copy2site.sh b/scripts/copy2site.sh deleted file mode 100755 index e0dfcdf..0000000 --- a/scripts/copy2site.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -rm -rf /var/www/webface diff --git a/vite.config.ts b/vite.config.ts index c06fb19..10bba41 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -51,7 +51,6 @@ export default defineConfig((args) => { }, }, build: { - /* main: () => { return { root: "./src/sites/main", @@ -63,18 +62,6 @@ export default defineConfig((args) => { plugins: [preact(), svgr(svgrOpts)], } }, - */ - main: () => { - return { - root: "./src/sites/main", - publicDir: "./public", - build: { - outDir: '../../../dist/webface', - emptyOutDir: true, - }, - plugins: [preact(), svgr(svgrOpts)], - } - }, camera: () => { return { root: "./src/sites/camera",