Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Youn-Rha authored Nov 15, 2024
1 parent efa7487 commit 032dc6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
SERVER_IP: ${{ secrets.HOST }}
run: |
# 서버에 /var/www/html/dist 디렉터리가 없으면 생성
sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$SERVER_IP "mkdir -p /var/www/html/dist"
sshpass -p "$SSH_PASSWORD" scp -o StrictHostKeyChecking=no -P 16122 -r dist/* rayoen@$SERVER_IP:/var/www/html/dist/
sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$SERVER_IP "chmod -R 755 /var/www/html/dist"
sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$SERVER_IP "sudo systemctl restart nginx"
sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$HOST "mkdir -p /var/www/html/dist"
sshpass -p "$PASSWORD" scp -o StrictHostKeyChecking=no -P 16122 -r dist/* rayoen@$HOST:/var/www/html/dist/
sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$HOST "chmod -R 755 /var/www/html/dist"
sshpass -p "$PASSWORD" ssh -o StrictHostKeyChecking=no -p 16122 rayoen@$HOST "sudo systemctl restart nginx"

0 comments on commit 032dc6e

Please sign in to comment.