From 836ba1bff18b0f09fd9344a33e9793acb079ba7b Mon Sep 17 00:00:00 2001 From: Ankan Saha Date: Sun, 7 Apr 2024 16:10:41 +0530 Subject: [PATCH] Refactor SCP command in deployment script to use find command for copying all files and directories to the App directory on the VM --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 34ebc54..ae7da03 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: |