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 ^-^"