Skip to content

Commit 56ef979

Browse files
committed
test-deploy v.42
1 parent be5add0 commit 56ef979

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

.github/workflows/test-deployment.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ jobs:
4444
key: ${{ secrets.SERVER_SSH_KEY }}
4545
port: ${{ secrets.SERVER_SSH_PORT }}
4646
script_path: ./scripts/copy2site.sh
47+
script: |
48+
rm -rf /var/www/webface
49+
mkdir /var/www/webface
4750
- name: Copy build to production server
4851
uses: appleboy/scp-action@v0.1.7
4952
with:
5053
host: ${{ secrets.SERVER_NAME }}
5154
username: ${{ secrets.USERNAME }}
5255
key: ${{ secrets.SERVER_SSH_KEY }}
5356
port: ${{ secrets.SERVER_SSH_PORT }}
54-
source: webface/*
55-
target: /var/www/
57+
source: dist/*
58+
target: /var/www/webface/

scripts/copy2site.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

vite.config.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default defineConfig((args) => {
5151
},
5252
},
5353
build: {
54-
/*
5554
main: () => {
5655
return {
5756
root: "./src/sites/main",
@@ -63,18 +62,6 @@ export default defineConfig((args) => {
6362
plugins: [preact(), svgr(svgrOpts)],
6463
}
6564
},
66-
*/
67-
main: () => {
68-
return {
69-
root: "./src/sites/main",
70-
publicDir: "./public",
71-
build: {
72-
outDir: '../../../dist/webface',
73-
emptyOutDir: true,
74-
},
75-
plugins: [preact(), svgr(svgrOpts)],
76-
}
77-
},
7865
camera: () => {
7966
return {
8067
root: "./src/sites/camera",

0 commit comments

Comments
 (0)