Skip to content

Commit

Permalink
Change to correct pem file
Browse files Browse the repository at this point in the history
  • Loading branch information
Afsha10 committed Mar 9, 2024
1 parent 42adddc commit 6f11519
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend-ec2-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
uses: actions/checkout@v3

- name: Create private key
run: echo "${{ secrets.SSH_PRIVATE_KEY}}" > videoStorage.pem
run: echo "${{ secrets.SSH_PRIVATE_KEY}}" > terraform-week-pem-file.pem

- name: Connect to EC2
run: |
chmod 400 videoStorage.pem
echo "${{ vars.SSH_USERNAME }}@${{ vars.EC2_HOST }}"
cat videoStorage.pem
ssh -i videoStorage.pem -o StrictHostKeyChecking=no "${{ vars.SSH_USERNAME }}@${{ vars.EC2_HOST }}" << EOF
cat terraform-week-pem-file.pem
ssh -i terraform-week-pem-file.pem -o StrictHostKeyChecking=no "${{ vars.SSH_USERNAME }}@${{ vars.EC2_HOST }}" << EOF
cd video-storage-app
git pull
cd server
Expand Down
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const db = new Pool({

// GET "/"
app.get("/", (req, res) => {
res.status(200).json("Hello World!! I'm testing my back-end server!:))");
res.status(200).json("Hello World!! I'm testing my back-end server!:)))");
});

// Connecting to database
Expand Down

0 comments on commit 6f11519

Please sign in to comment.