Skip to content

Commit 007e447

Browse files
committed
feat: 위치 변경
1 parent 4195d5c commit 007e447

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/app.module.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ import { EventsGateway } from './eventGateway';
2424

2525
@Module({
2626
imports: [
27-
UserModule,
2827
ConfigModule.forRoot({
2928
isGlobal: true,
3029
}),
3130
TypeOrmModule.forRoot({
3231
type: 'mysql',
33-
host: process.env.DEV_DB_HOST
34-
? process.env.DEV_DB_HOST
35-
: process.env.DB_HOST,
32+
host: process.env.DB_HOST,
3633
port: 3306,
3734
username: process.env.DEV_DB_USER
3835
? process.env.DEV_DB_USER
@@ -47,6 +44,7 @@ import { EventsGateway } from './eventGateway';
4744
logging: true, // 정확히 어떤 sql 쿼리가 실행됐는지 로그 출력
4845
synchronize: false, // 현재 entity 와 실제 데이터베이스 상 모델을 동기화
4946
}),
47+
UserModule,
5048
ChatMessageModule,
5149
ChatRoomModule,
5250
ClothingModule,
@@ -63,9 +61,6 @@ import { EventsGateway } from './eventGateway';
6361
UserBlockModule,
6462
UserReportModule,
6563
AuthModule,
66-
ConfigModule.forRoot({
67-
isGlobal: true,
68-
}),
6964
],
7065
controllers: [AppController],
7166
providers: [AppService, EventsGateway],

0 commit comments

Comments
 (0)