Skip to content

Commit

Permalink
fix dir path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Siu committed Mar 3, 2024
1 parent a663ac9 commit bc8b65d
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 @@ -22,6 +22,6 @@ jobs:
- name: SSH into EC2 instance and deploy
run: |
cat backend-ec2.pem
ssh -i backend-ec2.pem -o StrictHostKeyChecking=no ec2-user@${{ secrets.EC2_DNS }} "bash -c 'cd /server.js && git pull && npm install && pm2 start server.js'"
ssh -i backend-ec2.pem -o StrictHostKeyChecking=no ec2-user@${{ secrets.EC2_DNS }} "bash -c 'cd server && git pull && npm install && pm2 start server.js'"
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 "/"
//test10
//test11
app.get("/", (req, res) => {

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

0 comments on commit bc8b65d

Please sign in to comment.