From 05de75549682818cf2f25c06cb32441d6ad57ad8 Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Sun, 22 Sep 2024 16:31:46 +0200 Subject: [PATCH] rsync instead of sftp --- package.json | 4 ++-- scripts/deploy_to_uberspace.sh | 3 --- scripts/post_upload_commands.sh | 3 --- scripts/pre_upload_commands.sh | 2 -- scripts/sftp_commands.sh | 3 --- 5 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 scripts/deploy_to_uberspace.sh delete mode 100644 scripts/post_upload_commands.sh delete mode 100644 scripts/pre_upload_commands.sh delete mode 100644 scripts/sftp_commands.sh diff --git a/package.json b/package.json index 0914e38..a172bbe 100644 --- a/package.json +++ b/package.json @@ -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" } -} +} \ No newline at end of file diff --git a/scripts/deploy_to_uberspace.sh b/scripts/deploy_to_uberspace.sh deleted file mode 100644 index 5a375dd..0000000 --- a/scripts/deploy_to_uberspace.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/scripts/post_upload_commands.sh b/scripts/post_upload_commands.sh deleted file mode 100644 index 013ca18..0000000 --- a/scripts/post_upload_commands.sh +++ /dev/null @@ -1,3 +0,0 @@ -cd html -mv dist/* . -rm -r dist \ No newline at end of file diff --git a/scripts/pre_upload_commands.sh b/scripts/pre_upload_commands.sh deleted file mode 100644 index 895c335..0000000 --- a/scripts/pre_upload_commands.sh +++ /dev/null @@ -1,2 +0,0 @@ -cd html -rm -r * \ No newline at end of file diff --git a/scripts/sftp_commands.sh b/scripts/sftp_commands.sh deleted file mode 100644 index 2eb14aa..0000000 --- a/scripts/sftp_commands.sh +++ /dev/null @@ -1,3 +0,0 @@ -cd html -put -r dist -bye \ No newline at end of file