File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ services:
59
59
networks :
60
60
- peerprep-network
61
61
env_file :
62
- - ./matching-service/.env.dev
62
+ - ./matching-service/.env.production
63
63
networks :
64
64
peerprep-network :
65
65
driver : bridge
Original file line number Diff line number Diff line change 23
23
imagePullPolicy : Always
24
24
ports :
25
25
- containerPort : 5001
26
- env :
27
- - name : NODE_ENV
28
- value : production
29
26
envFrom :
30
27
- secretRef :
31
28
name : matching-service-config
Original file line number Diff line number Diff line change 1
1
import express from "express" ;
2
2
import cors from "cors" ;
3
- import * as dotenv from "dotenv" ;
4
3
5
4
import messageRoutes from "./routes/messageRoute" ;
6
5
import { initRabbitMQ } from "./services/rabbitMqService" ;
7
6
import redisClient from "./config/redisConfig" ;
8
7
import { startBackgroundTransfer } from "./services/matchingService" ;
9
8
10
- const envFile =
11
- process . env . NODE_ENV === "production" ? ".env.production" : ".env.dev" ;
12
- console . log ( `Using env file: ${ envFile } ` ) ;
13
- dotenv . config ( { path : envFile } ) ;
14
-
15
9
const app = express ( ) ;
16
10
const PORT = process . env . PORT || 5001 ; // 5001 to prevent conflicts
17
11
You can’t perform that action at this time.
0 commit comments