rsync instead of sftp

This commit is contained in:
Filipe Medeiros 2024-09-22 16:31:46 +02:00
parent 5c3976b3f0
commit 05de755496
Signed by: filipe
GPG key ID: 9533BD5467CC1E78
5 changed files with 2 additions and 13 deletions

View file

@ -6,7 +6,7 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"deploy": "bun run build && sh scripts/deploy_to_uberspace.sh",
"deploy": "bun run build && rsync -a dist/* uberspace_filipesm:~/html",
"preview": "astro preview",
"astro": "astro",
"format": "prettier . -w --config ./.prettierrc",
@ -30,4 +30,4 @@
"autoprefixer": "^10.4.19",
"postcss": "^8.4.39"
}
}
}

View file

@ -1,3 +0,0 @@
ssh -i ~/.ssh/uberspace_filipesm uberspace_filipesm < scripts/pre_upload_commands.sh
sftp -i ~/.ssh/uberspace_filipesm -b scripts/sftp_commands.sh uberspace_filipesm
ssh -i ~/.ssh/uberspace_filipesm uberspace_filipesm < scripts/post_upload_commands.sh

View file

@ -1,3 +0,0 @@
cd html
mv dist/* .
rm -r dist

View file

@ -1,2 +0,0 @@
cd html
rm -r *

View file

@ -1,3 +0,0 @@
cd html
put -r dist
bye