Skip to content

Commit ef263a3

Browse files
committed
fix env
1 parent 3cafe7e commit ef263a3

2 files changed

Lines changed: 1 addition & 27 deletions

File tree

.aws/task-definition.dev.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,6 @@
2424
"enabled": true,
2525
"ignoredExitCodes": []
2626
},
27-
"environment": [
28-
{
29-
"name": "DB_NAME",
30-
"value": "halsaram_dev_db"
31-
},
32-
{
33-
"name": "DB_USERNAME",
34-
"value": "devadmin"
35-
},
36-
{
37-
"name": "DB_HOST",
38-
"value": "halsaram-aurora-cluster-dev.cluster-ch2mcsuwk0oh.ap-northeast-2.rds.amazonaws.com"
39-
},
40-
{
41-
"name": "DB_PORT",
42-
"value": "5432"
43-
}
44-
],
45-
"secrets": [
46-
{
47-
"name": "DB_PASSWORD",
48-
"valueFrom": "arn:aws:secretsmanager:ap-northeast-2:607735330430:secret:rds!cluster-0ea72cf8-019b-43e5-a7fc-7a5b81a1d207-rpxeib:password::"
49-
}
50-
],
5127
"logConfiguration": {
5228
"logDriver": "awslogs",
5329
"options": {

src/app.module.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ import { AllExceptionsFilter } from './common/filters/all-exceptions.filter';
2424
imports: [
2525
ConfigModule.forRoot({
2626
isGlobal: true,
27-
envFilePath: process.env.NODE_ENV
28-
? [`.env.${process.env.NODE_ENV}`, '.env']
29-
: ['.env'],
27+
envFilePath: `.env.${process.env.NODE_ENV}`,
3028
cache: true,
3129
}),
3230
TypeOrmModule.forRootAsync({

0 commit comments

Comments
 (0)