Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
riddhesh-mahajan committed Oct 30, 2023
1 parent 82d0c26 commit 0dbbc5d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/DeployPipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,25 @@ jobs:
source: ./
target: /home/ubuntu/slash/
overwrite: true

- name: SSH into EC2 and restart app
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
pm2 stop all
yarn global add turbo
yarn turbo build
pm2 start all
pm2 stop slash_landing
pm2 stop slash_admin
pm2 stop slash_web
pm2 stop slash_backend
pm2 stop slash_code_executor
pm2 start yarn --name slash_landing -- dev

0 comments on commit 0dbbc5d

Please sign in to comment.