From de8a788f97ee9cb3421ef3db36d6d8f47b8d8742 Mon Sep 17 00:00:00 2001 From: Viraj Chandra <95118745+virajchandra51@users.noreply.github.com> Date: Sat, 16 Sep 2023 13:00:19 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17caabd..d7c4250 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: PEM: ${{secrets.PEM}} - name: Copy build folder contents to server - run: scp -o StrictHostKeyChecking=no -i tcp.pem -r build/* ubuntu@ec2-16-171-64-245.eu-north-1.compute.amazonaws.com:/home/CodeUtsava7.0/build + run: sudo scp -o StrictHostKeyChecking=no -i tcp.pem -r build/* ubuntu@ec2-16-171-64-245.eu-north-1.compute.amazonaws.com:/home/CodeUtsava7.0/build - name: Doing the magic now run: ssh -i tcp.pem ubuntu@ec2-16-171-64-245.eu-north-1.compute.amazonaws.com "sudo systemctl restart ngnix"