Skip to content

Commit

Permalink
corsOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
imdeveshshukla committed Aug 17, 2024
1 parent 0d64007 commit 49b4bbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: Verify Pushed Image
run: docker pull imdeveshshukla/quiet-backend

# - name: Deploy to EC2
# uses: appleboy/ssh-action@master working
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USERNAME }}
# key: ${{ secrets.SSH_KEY }}
# script: |
# sudo docker pull imdeveshshukla/quiet-backend:latest
# sudo docker stop web-app || true
# sudo docker rm web-app || true
# sudo docker run --env-file .env --restart-always -d --name web-app -p 3000:3000 imdeveshshukla/quiet-backend:latest
- name: Deploy
uses: appleboy/ssh-action@master #working
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
sudo docker pull imdeveshshukla/quiet-backend:latest
sudo docker stop web-app || true
sudo docker rm web-app || true
sudo docker run --env-file .env --restart always -d --name web-app -p 3000:3000 imdeveshshukla/quiet-backend:latest
2 changes: 1 addition & 1 deletion backend/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const app = express()
const port = 3000
const corsOptions = {
credentials: true,
origin: 'https://quiet-9tua.onrender.com',
origin: 'https://www.bequiet.live',
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: [
"Origin",
Expand Down

0 comments on commit 49b4bbe

Please sign in to comment.