Skip to content

[BE#494] 팔로워들 차단하기 (#495) #61

[BE#494] 팔로워들 차단하기 (#495)

[BE#494] 팔로워들 차단하기 (#495) #61

name: BE main Workflow
on:
push:
branches: main
paths: "BE/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: connect to NCP
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.NCP_HOST }}
username: ${{ secrets.NCP_USERNAME }}
password: ${{ secrets.NCP_PASSWORD }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd iOS06-FlipMate/BE
git pull origin main
npm install
if ! pm2 list | grep "flipmate-dev"; then
pm2 start npm --name "flipmate-dev" -- run start
else
pm2 restart flipmate-dev
fi