Skip to content

Commit

Permalink
write key without remove \r
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Siu committed Mar 3, 2024
1 parent 6b45626 commit 272475c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend-ec2-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
- name: Add SSH key to agent
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > id_rsa_tmp
echo "${{ secrets.SSH_PRIVATE_KEY }}" > id_rsa_tmp
chmod 600 id_rsa_tmp
ssh-keygen -i id_rsa_tmp -f id_rsa
rm id_rsa_tmp
Expand Down
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const db = new Pool({
// },
// ];
// GET "/"
//test6
//test7
app.get("/", (req, res) => {

db.query("SELECT * FROM videos", (error, result) => {
Expand Down

0 comments on commit 272475c

Please sign in to comment.