Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhapple authored Dec 10, 2024
1 parent 71de50b commit 79ea816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18 # React/Vite가 요구하는 Node.js 버전
node-version: 18

- name: Create .env File
run: |
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
# 4. 빌드 파일을 EC2 서버로 전송
- name: Upload build files to EC2
run: |
scp -o StrictHostKeyChecking=no -i /tmp/deploy_key.pem -r ./dist/. $USER@$HOST:/usr/share/nginx/html
scp -o StrictHostKeyChecking=no -i /tmp/deploy_key.pem -r ./dist/. $USER@$HOST:/home/ubuntu/project/dist
env:
HOST: ${{ secrets.FRONTEND_EC2_HOST }}
USER: ${{ secrets.FRONTEND_EC2_USER }}

0 comments on commit 79ea816

Please sign in to comment.