Skip to content

imageUrl 변수 이름 변경 #107

imageUrl 변수 이름 변경

imageUrl 변수 이름 변경 #107

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: deploy
on:
push:
branches: [ main ]
jobs:
deploy:
name: deploy to EC2
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build & Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_PASSWORD }}
script: |
cd ~/kau/backend
pm2 kill
git pull
npm i
cd ~/kau/backend/src
pm2 start app.js