Skip to content

Commit

Permalink
Merge pull request #4 from sudhanshugautam2911/deploy-backend
Browse files Browse the repository at this point in the history
Run webhook on aws ec2
  • Loading branch information
sudhanshugautam2911 authored Nov 8, 2024
2 parents b5c40a6 + d55fd52 commit 131a21b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 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 \
sudo docker run -d --name web-app -p 3005:3000 -p 3006:3003 \
-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(3000, () => console.log("Server ready on port 3000."));
app.listen(3003, () => 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 ["npm", "run", "start-user-app"]
CMD ["concurrently", "\"npm run start-user-app\"", "\"npm run start-bank-webhook\""]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"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-user-app": "cd ./apps/user-app && npm run start",
"start-bank-webhook": "cd ./apps/bank-webhook && npm run start"
},
"devDependencies": {
"@repo/eslint-config": "*",
Expand Down

0 comments on commit 131a21b

Please sign in to comment.