File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ node_modules
2+ .dockerignore
3+ .git
4+ .env
5+ .gitignore
Original file line number Diff line number Diff line change 1+ FROM node:22
2+
3+ WORKDIR /usr/src/app
4+
5+ COPY package*.json ./
6+ RUN npm install
7+
8+ COPY . .
9+
10+ EXPOSE 3000
11+
12+ CMD ["node" , "src/server.js" ]
Original file line number Diff line number Diff line change 11const config = {
2- port : process . env . PORT || 3000 ,
2+ port : parseInt ( process . env . PORT ) || 3000 ,
33 node_env : process . env . NODE_ENV || "development" ,
44 API_PREFIX : process . env . API_PREFIX || "/api" ,
55 ORIGINAL_PREFIX : process . env . ORIGINAL_PREFIX || "original" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ import { consumeEmailQueue } from "./utils/rabbitmqService.js";
55
66const startServer = async ( ) => {
77 try {
8- const port = env . port ;
9- console . log ( port ) ;
8+ const { port } = env ;
109
1110 app . listen ( port , ( ) => { } ) ;
1211
You can’t perform that action at this time.
0 commit comments