Skip to content

Commit

Permalink
Merge pull request #60 from boostcampwm2023/hotfix/59-fix-deploy-script
Browse files Browse the repository at this point in the history
[Hotfix] 배포 스크립트 오류 수정
  • Loading branch information
JoonSoo-Kim authored Nov 19, 2023
2 parents 8b09238 + 350f74b commit ef915d6
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
name: deploy

on:
push:
branches:
- main
push:
branches:
- main
jobs:
be-deploy:
runs-on: ubuntu-20.04
steps:
- name: SSH-deploy
uses: appleboy/ssh-action@master
with:
host: ${{secrets.VPC_HOST}}
username: ${{secrets.VPC_USER}}
password: ${{secrets.VPC_PASSWORD}}
port: ${{secrets.VPC_PORT}}
script: |
cd /home/web08-ByeolSoop
git pull origin main
cd BE
npm install --force
killall node
npm start
fe-deploy:
needs: be-deploy
runs-on: ubuntu-20.04
steps:
- name: SSH-deploy
uses: appleboy/ssh-action@master
with:
host: ${{secrets.VPC_HOST}}
username: ${{secrets.VPC_USER}}
password: ${{secrets.VPC_PASSWORD}}
port: ${{secrets.VPC_PORT}}
script: |
cd /home/web08-ByeolSoop/FE
npm install --force
npm start
be-deploy:
runs-on: ubuntu-20.04
steps:
- name: SSH-deploy
uses: appleboy/ssh-action@master
with:
host: ${{secrets.VPC_HOST}}
username: ${{secrets.VPC_USER}}
password: ${{secrets.VPC_PASSWORD}}
port: ${{secrets.VPC_PORT}}
script: |
cd /home/web08-ByeolSoop
git pull origin main
cd BE
npm install --force
fuser -k ${{secrets.BE_PORT}}/tcp
nohup npm run start </dev/null >/dev/null 2>&1 &
fe-deploy:
needs: be-deploy
runs-on: ubuntu-20.04
steps:
- name: SSH-deploy
uses: appleboy/ssh-action@master
with:
host: ${{secrets.VPC_HOST}}
username: ${{secrets.VPC_USER}}
password: ${{secrets.VPC_PASSWORD}}
port: ${{secrets.VPC_PORT}}
script: |
cd /home/web08-ByeolSoop/FE
npm install --force
fuser -k ${{secrets.FE_PORT}}/tcp
nohup npm run start </dev/null >/dev/null 2>&1 &

0 comments on commit ef915d6

Please sign in to comment.