Skip to content

Commit

Permalink
Dev debug fix (#83)
Browse files Browse the repository at this point in the history
* updated debug file

* debugfix

* nodejs version update and api debug fix
  • Loading branch information
nitin27may authored Nov 17, 2023
1 parent ab2ffdb commit 9bad349
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:21-alpine

# Copy dependency definitions
COPY package.json package-lock.json ./
Expand Down
4 changes: 2 additions & 2 deletions api/debug.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Create image based off of the official node:18.9.0-alpine3.16
FROM node:20
FROM node:21-alpine

WORKDIR /api

Expand All @@ -8,7 +8,7 @@ RUN chown -R node:node /api
# Copy dependency definitions
COPY --chown=node:node package*.json .

RUN npm ci
RUN npm i

RUN chmod -R 777 node_modules

Expand Down
2 changes: 1 addition & 1 deletion api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"bcryptjs": "^2.1.0",
"body-parser": "^1.19.0",
"cors": "^2.8.1",
"dotenv": "^16.0.1",
"dotenv": "^16.3.1",
"express": "^4.17.1",
"express-jwt": "^7.7.2",
"jsonwebtoken": "^8.5.1",
Expand Down
2 changes: 1 addition & 1 deletion api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { expressjwt: expressjwt } = require("express-jwt");
// Import Mongoose
let mongoose = require("mongoose");

const config = require("./config.json");
//const config = require("./config.json");

app.use(cors());
app.use(bodyParser.urlencoded({ extended: true }));
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Create image based off of the official Node 10 image
FROM node:20-alpine as builder
FROM node:21-alpine as builder

# Copy dependency definitions
COPY package.json package-lock.json ./
Expand All @@ -19,7 +19,7 @@ COPY . /app/
# Build server side bundles
RUN npm run build:ssr

FROM node:20-alpine
FROM node:21-alpine
## From 'builder' copy published folder
COPY --from=builder /app /app

Expand Down
4 changes: 1 addition & 3 deletions frontend/debug.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Create image based off of the official 12.8-alpine
FROM node:20-alpine
FROM node:21-alpine

#RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null
WORKDIR /app
Expand All @@ -12,8 +12,6 @@ RUN npm i --legacy-peer-deps --unsafe-perm=true --allow-root

RUN npm install -g @angular/cli

RUN npm install -g @angular/cli

COPY . /app/

EXPOSE 4200 49153
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/core/guards/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./auth.guard";
export { AuthGuard } from "./auth.guard";

0 comments on commit 9bad349

Please sign in to comment.