From 2112f9e57092df55f78a9d4ab06c07a2155f9496 Mon Sep 17 00:00:00 2001 From: Rajkumar Date: Thu, 16 Apr 2026 22:43:58 +0530 Subject: [PATCH 1/4] cd_pipeline_for_backend --- .github/workflows/cd_backend.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/cd_backend.yml diff --git a/.github/workflows/cd_backend.yml b/.github/workflows/cd_backend.yml new file mode 100644 index 0000000..b098571 --- /dev/null +++ b/.github/workflows/cd_backend.yml @@ -0,0 +1,31 @@ +## build the docker image +name: Deploy the backend + +on: + push: + branches: [dev] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout the code + uses: actions/checkout@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./apps/http-server/Dockerfile + push: true + tags: codeheist/rexial-http-server:${{ github.sha }} + + +## SSH into our VM and start the new image \ No newline at end of file From fb559f196888a7a43d91c0ee353b5e9f87dac6ed Mon Sep 17 00:00:00 2001 From: Rajkumar Date: Thu, 16 Apr 2026 22:55:14 +0530 Subject: [PATCH 2/4] try_again_cd --- .github/workflows/cd_backend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd_backend.yml b/.github/workflows/cd_backend.yml index b098571..711e4e7 100644 --- a/.github/workflows/cd_backend.yml +++ b/.github/workflows/cd_backend.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout the code - uses: actions/checkout@v3 + uses: actions/checkout@v3 - name: Login to Docker Hub uses: docker/login-action@v2 From 1fd46d27e681517105e3aa2a53f2536bea8a6cba Mon Sep 17 00:00:00 2001 From: Rajkumar Date: Thu, 16 Apr 2026 23:08:32 +0530 Subject: [PATCH 3/4] secrets_isssue_fixed --- .github/workflows/cd_backend.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/cd_backend.yml b/.github/workflows/cd_backend.yml index 711e4e7..d419c79 100644 --- a/.github/workflows/cd_backend.yml +++ b/.github/workflows/cd_backend.yml @@ -17,7 +17,7 @@ jobs: uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Build and push uses: docker/build-push-action@v4 @@ -27,5 +27,3 @@ jobs: push: true tags: codeheist/rexial-http-server:${{ github.sha }} - -## SSH into our VM and start the new image \ No newline at end of file From 7e2092aae0e05d9a145ed976acc19b99345aebec Mon Sep 17 00:00:00 2001 From: Rajkumar Date: Thu, 16 Apr 2026 23:18:39 +0530 Subject: [PATCH 4/4] unnecessary_logs_removed_from_the_backend --- apps/http-server/src/controllers/authController.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/http-server/src/controllers/authController.ts b/apps/http-server/src/controllers/authController.ts index 6d0e0e8..1406a4e 100644 --- a/apps/http-server/src/controllers/authController.ts +++ b/apps/http-server/src/controllers/authController.ts @@ -12,7 +12,6 @@ export const userRegisterController = async (req: Request, res: Response) => { const { name, email, password } = req.body; - console.log("The name , email and passwords are: ", name, email, password) // is user existed already const isUserExisted = await prisma.user.findUnique({ @@ -49,7 +48,6 @@ export const userRegisterController = async (req: Request, res: Response) => { }) } catch (error) { - console.log("signupError", error) return errorResponse(res, 500, "Internal Server Error...") } @@ -91,7 +89,6 @@ export const userLoginController = async (req: Request, res: Response) => { }) } catch (error) { - console.log("Login error is: ", error); return errorResponse(res, 500, "Internal Server Errror....") } } @@ -116,7 +113,6 @@ export const getLoggedInUserController = async (req: Request, res: Response) => }) } catch (error) { - console.log("Auth verification failed", error); return errorResponse(res, 500, "Internal Server Error") } } \ No newline at end of file