Skip to content

Commit

Permalink
Merge pull request #5 from sudhanshugautam2911/revert-4-deploy-backend
Browse files Browse the repository at this point in the history
Revert "Run webhook on aws ec2"
  • Loading branch information
sudhanshugautam2911 authored Nov 8, 2024
2 parents 131a21b + 2ea7ffc commit 91993e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
sudo docker pull sudhnashu2911/payment-pe
sudo docker stop web-app || true
sudo docker rm web-app || true
sudo docker run -d --name web-app -p 3005:3000 -p 3006:3003 \
sudo docker run -d --name web-app -p 3005:3000 \
-e DATABASE_URL=${{ secrets.DATABASE_URL }} \
-e NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} \
sudhnashu2911/payment-pe
2 changes: 1 addition & 1 deletion apps/bank-webhook/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ app.post("/hdfcWebhook", async (req, res) => {
}

})
app.listen(3003, () => console.log("Server ready on port 3000."));
app.listen(3000, () => console.log("Server ready on port 3000."));
// app.listen(3003);
export default app;

2 changes: 1 addition & 1 deletion docker/Dockerfile.user
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ RUN npm run db:generate
# can you filter down the build down to one app?
RUN npm run build

CMD ["concurrently", "\"npm run start-user-app\"", "\"npm run start-bank-webhook\""]
CMD ["npm", "run", "start-user-app"]
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"db:generate": "cd packages/db && npx prisma generate && cd ../..",
"start-user-app": "cd ./apps/user-app && npm run start",
"start-bank-webhook": "cd ./apps/bank-webhook && npm run start"
"start-user-app": "cd ./apps/user-app && npm run start"
},
"devDependencies": {
"@repo/eslint-config": "*",
Expand Down

0 comments on commit 91993e8

Please sign in to comment.