Skip to content

Commit

Permalink
Merge pull request #130 from mini-game-world/change-deploy.yml
Browse files Browse the repository at this point in the history
deploy해도 이전것이 pm2로 실행되던거 고침
  • Loading branch information
J-Jaeh authored Jul 23, 2024
2 parents 2087bfd + 4ae81dd commit ffeab12
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
script_stop: true
script: |
rm -rf /home/ubuntu/BE-mini-game-world/current
mkdir /home/ubuntu/BE-mini-game-world/current
mv /home/ubuntu/BE-mini-game-world/tobe/project.tar.gz /home/ubuntu/BE-mini-game-world/current/project.tar.gz
cd /home/ubuntu/BE-mini-game-world/current
mv /home/ubuntu/BE-mini-game-world/tobe/project.tar.gz /home/ubuntu/BE-mini-game-world/project.tar.gz
cd /home/ubuntu/BE-mini-game-world
tar -xvf project.tar.gz
rm project.tar.gz
# NVM 로드 및 npm 설치 경로 설정
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Expand Down

0 comments on commit ffeab12

Please sign in to comment.