Skip to content

fix: folder name

fix: folder name #5

Workflow file for this run

name: Deploy code to EC2 instance
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Rebuild backend and deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_URL }}
username: 'ubuntu'
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/ubuntu/dishzero/DishZero/backend
pm2 stop dishzero
git pull
yarn install
yarn build
pm2 start yarn --name "dishzero" -- start