Skip to content

Commit

Permalink
yet
Browse files Browse the repository at this point in the history
  • Loading branch information
saketh-05 committed Dec 15, 2024
1 parent 8cf4c53 commit 5a3dc00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ jobs:
sudo docker stop frontend || true && sudo docker rm frontend || true
sudo docker stop backend || true && sudo docker rm backend || true
sudo docker run -d --name frontend -p 5173:5173 ${{ secrets.DOCKER_USERNAME }}/frontend:latest
sudo docker run -d --name backend -p 3000:3000 ${{ secrets.DOCKER_USERNAME }}/backend:latest
sudo docker run -d --name backend -p 3000:3000 ${{ secrets.DOCKER_USERNAME }}/backend:latest -e MONGODB_USERNAME = '${{secrets.MONGODB_USERNAME}}' -e MONGODB_PASSWORD = '${{secrets.MONGODB_PASSWORD}}'
EOF
2 changes: 1 addition & 1 deletion Backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.use(express.json());
console.log("connecting");

app.use(cors({
origin: 'http://localhost:5173', // Replace with your frontend URL
origin: `http://43.204.236.94/:5173`, // Replace with your frontend URL
methods: ['GET', 'POST', 'PUT', 'DELETE'], // Allowed HTTP methods
credentials: true, // Include credentials if needed
}));
Expand Down

0 comments on commit 5a3dc00

Please sign in to comment.