Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eneoli committed Sep 5, 2024
1 parent 1c8d952 commit 0c020d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ^-^"
Expand Down

0 comments on commit 0c020d3

Please sign in to comment.