Skip to content

Commit

Permalink
Refine deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkov committed Jul 20, 2023
1 parent d80a09f commit 363187f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy-do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ jobs:
host: ${{ secrets.DO_SERVER }}
username: ${{ secrets.DO_USERNAME }}
key: ${{ secrets.DO_SSH_KEY }}
source: "app/dist" # adjust this according to where your build outputs its files
target: "/path/to/your/app" # the location on your server to copy the files to
source: "app/"
target: "/root"

- name: Restart App
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DO_SERVER }}
username: ${{ secrets.DO_USERNAME }}
key:

key: ${{ secrets.DO_SSH_KEY }}
script: |
sudo kill $(sudo lsof -t -i:80)
cd app/
nohup yarn server > server.log 2>&1 &

0 comments on commit 363187f

Please sign in to comment.