Skip to content

Commit

Permalink
test-deploy v.42
Browse files Browse the repository at this point in the history
  • Loading branch information
yarobash committed Nov 24, 2024
1 parent be5add0 commit 56ef979
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ 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/[email protected]
with:
host: ${{ secrets.SERVER_NAME }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: ${{ secrets.SERVER_SSH_PORT }}
source: webface/*
target: /var/www/
source: dist/*
target: /var/www/webface/
3 changes: 0 additions & 3 deletions scripts/copy2site.sh

This file was deleted.

13 changes: 0 additions & 13 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export default defineConfig((args) => {
},
},
build: {
/*
main: () => {
return {
root: "./src/sites/main",
Expand All @@ -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",
Expand Down

0 comments on commit 56ef979

Please sign in to comment.