From 2ea7ffc0c5404a13f848743a35b232b415eff814 Mon Sep 17 00:00:00 2001 From: Sudhanshu Gautam Date: Fri, 8 Nov 2024 13:57:46 +0530 Subject: [PATCH] Revert "Run webhook on aws ec2" --- .github/workflows/deploy.yml | 2 +- apps/bank-webhook/src/index.ts | 2 +- docker/Dockerfile.user | 2 +- package.json | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 03285c3..e7ba98e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file diff --git a/apps/bank-webhook/src/index.ts b/apps/bank-webhook/src/index.ts index 39614ee..f5955e3 100644 --- a/apps/bank-webhook/src/index.ts +++ b/apps/bank-webhook/src/index.ts @@ -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; diff --git a/docker/Dockerfile.user b/docker/Dockerfile.user index 1aadf4e..ee427f7 100644 --- a/docker/Dockerfile.user +++ b/docker/Dockerfile.user @@ -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"] \ No newline at end of file diff --git a/package.json b/package.json index b890f65..cb620e6 100644 --- a/package.json +++ b/package.json @@ -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": "*",