Skip to content

Commit

Permalink
Fix: .env.dev 로 전환
Browse files Browse the repository at this point in the history
- .env는 배포때만 쓰일 예정
  • Loading branch information
minkj1992 committed Jan 22, 2021
1 parent ac88fe7 commit 6aa389f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,4 @@ db.createUser({ user: "<아이디>", pwd: "<비번>", roles: ["readWrite", "dbAd

db.auth("<아이디>","<비번>")
```

2 changes: 1 addition & 1 deletion src/config/config.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ConfigService } from "./config.service";
providers: [
{
provide: ConfigService,
useValue: new ConfigService(".env"),
useValue: new ConfigService(".env.dev"),
},
],
exports: [ConfigService],
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function bootstrap() {
logger: ["error", "warn"],
});

const configService = new ConfigService(".env");
const configService = new ConfigService(".env.dev");

app.enableCors();
// app.setGlobalPrefix(configService.get("NODE_ENV"));
Expand Down

0 comments on commit 6aa389f

Please sign in to comment.