Skip to content

Commit

Permalink
next
Browse files Browse the repository at this point in the history
  • Loading branch information
sshresthadh committed Jan 29, 2024
1 parent 0318bb3 commit f3129ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'test'
- name: Adding Known Hosts
run: ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts
# - name: Adding Known Hosts
# run: ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts

- name: Update Git code on the servers
run: |
ssh ${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }} "ls"
- name: Install dependencies
run: |
ssh ${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }} "cd /home/ubuntu/devops_class/all_in_docker && npm install"
ssh ${{ secrets.REMOTE_USERNAME }}@${{ secrets.REMOTE_HOST }} "cd /home/ubuntu/devops_class/all_in_docker/client && npm install"
- name: Start the Node.js application
run: |
Expand Down

0 comments on commit f3129ce

Please sign in to comment.