From 0c020d351abf08d33ff93b3f59fd3509e77be130 Mon Sep 17 00:00:00 2001 From: Oliver Enes Date: Thu, 5 Sep 2024 05:21:53 +0200 Subject: [PATCH] cleanup --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 0f3e189..60dcfce 100755 --- a/deploy.sh +++ b/deploy.sh @@ -29,10 +29,10 @@ echo "" mkdir -p ~/.ssh/ echo "$SSH_KEY" > ~/.ssh/deploy.key sudo chmod 600 ~/.ssh/deploy.key -echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_host +echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts -ssh $DEPLOYMENT_USER@$DEPLOYMENT_SERVER "rm -rf $DEPLOYMENT_RES_PATH/*" -scp -r dist $DEPLOYMENT_USER@$DEPLOYMENT_SERVER:$DEPLOYMENT_RES_PATH +ssh -i ~/.ssh/deploy.key $DEPLOYMENT_USER@$DEPLOYMENT_SERVER "rm -rf $DEPLOYMENT_RES_PATH/*" +scp -i ~/.ssh/deploy.key -r dist $DEPLOYMENT_USER@$DEPLOYMENT_SERVER:$DEPLOYMENT_RES_PATH echo -e "\033[1;32m" echo "Done ^-^"