diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0f6ca7..472ff67 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,11 +39,5 @@ jobs: sudo docker pull prashantflick/paytm-turbo-user:latest sudo docker stop user-paytm || true sudo docker rm user-paytm || true - docker run -d -p 3001:3001 \ - -e DATABASE_URL=${{secrets.DATABASE_URL}} \ - -e NEXTAUTH_URL=${{secrets.NEXTAUTH_URL}} \ - -e NEXTAUTH_SECRET=${{secrets.NEXTAUTH_SECRET}} \ - -e GOOGLE_CLIENT_ID=${{secrets.GOOGLE_CLIENT_ID}} \ - -e GOOGLE_CLIENT_SECRET=${{secrets.GOOGLE_CLIENT_SECRET}} \ - prashantflick/paytm-turbo-user:latest + docker run --name user-paytm -d -p 3001:3001 -e DATABASE_URL=${{secrets.DATABASE_URL}} -e NEXTAUTH_URL=${{secrets.NEXTAUTH_URL}} -e NEXTAUTH_SECRET=${{secrets.NEXTAUTH_SECRET}} -e GOOGLE_CLIENT_ID=${{secrets.GOOGLE_CLIENT_ID}} -e GOOGLE_CLIENT_SECRET=${{secrets.GOOGLE_CLIENT_SECRET}} prashantflick/paytm-turbo-user:latest diff --git a/docker/Dockerfile.user b/docker/Dockerfile.user index 77d4832..868842c 100644 --- a/docker/Dockerfile.user +++ b/docker/Dockerfile.user @@ -5,6 +5,7 @@ WORKDIR /user/src/app COPY package.json package-lock.json turbo.json tsconfig.json ./ COPY apps/user-app ./apps/user-app +COPY apps/bank_webhook_handler ./apps/bank_webhook_handler COPY packages ./packages RUN npm install @@ -12,5 +13,6 @@ RUN npm install RUN npm run db:generate RUN npm run build-user-app +RUN npm run build-bank-webhook-app -CMD ["npm", "run", "start-user-app"] \ No newline at end of file +CMD ["npm", "run", "start-user-app-and-bank-webhook"] \ No newline at end of file diff --git a/package.json b/package.json index 088d005..c76198e 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,10 @@ "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 dev && cd ../..", - "build-user-app": "cd apps/user-app && npm run build && cd ../.." + "start-user-app": "cd apps/user-app && npm run dev && cd ../.. && npm run start-bank-webhook", + "build-user-app": "cd apps/user-app && npm run build && cd ../..", + "build-bank-webhook-app": "cd apps/bank_webhook_handler && npm run build && cd ../..", + "start-bank-webhook": "cd apps/bank_webhook_handler && npm run start && cd ../.." }, "devDependencies": { "prettier": "^3.2.5",