Skip to content
Merged

Dev #89

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/cd_backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## 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_PASSWORD }}

- 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 }}

4 changes: 0 additions & 4 deletions apps/http-server/src/controllers/authController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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...")

}
Expand Down Expand Up @@ -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....")
}
}
Expand All @@ -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")
}
}
Loading