Skip to content

Commit

Permalink
test-deploy 37
Browse files Browse the repository at this point in the history
  • Loading branch information
yarobash committed Nov 21, 2024
1 parent 9e869b1 commit dac08b8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,20 @@ jobs:
name: production-build
- name: Display artifact files
run: ls main
- name: Prepare folders on production server
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_NAME }}
username: root
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
script_path: ./scripts/copy2site.sh
- name: Copy build to production server
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_NAME }}
username: root
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
rm: true
source: main/*
target: /var/www/webface_test/
target: /var/www/
13 changes: 13 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default defineConfig((args) => {
},
},
build: {
/*
main: () => {
return {
root: "./src/sites/main",
Expand All @@ -62,6 +63,18 @@ export default defineConfig((args) => {
plugins: [preact(), svgr(svgrOpts)],
}
},
*/
main: () => {
return {
root: "./src/sites/main",
publicDir: "./public",
build: {
outDir: '../../../dist/webface_test',
emptyOutDir: true,
},
plugins: [preact(), svgr(svgrOpts)],
}
},
camera: () => {
return {
root: "./src/sites/camera",
Expand Down

0 comments on commit dac08b8

Please sign in to comment.