Skip to content

Commit

Permalink
Refactor SCP command in deployment script to use find command for cop…
Browse files Browse the repository at this point in the history
…ying all files and directories to the App directory on the VM
  • Loading branch information
AnkanSaha committed Apr 7, 2024
1 parent c99300c commit 836ba1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Copy code to VM
run: |
ls -a # Lists all files and directories in the current directory
scp -o StrictHostKeyChecking=no -i private_key.pem -r ${{ secrets.USERNAME }}@${{ secrets.VM_IP }}:~/App # Copies all files and directories to the home directory of the user on VM
scp -o StrictHostKeyChecking=no -i private_key.pem -r ./* ${{ secrets.USERNAME }}@${{ secrets.VM_IP }}:~/App # Copies all files and directories to the home directory of the user on VM
- name: Clean Up
run: |
Expand Down

0 comments on commit 836ba1b

Please sign in to comment.