@@ -20,30 +20,21 @@ import { AuthModule } from './auth/auth.module';
2020import { UserModule } from './user/user.module' ;
2121import { WorkspaceModule } from './workspace/workspace.module' ;
2222import { RoleModule } from './role/role.module' ;
23- import { RedisService } from './redis/redis.service' ;
24- import { RedisModule } from './redis/redis.module' ;
25- import { ScheduleModule } from '@nestjs/schedule' ;
26- import { TasksService } from './tasks/tasks.service' ;
2723
2824@Module ( {
2925 imports : [
30- ScheduleModule . forRoot ( ) ,
3126 ServeStaticModule . forRoot ( {
3227 rootPath : path . join ( __dirname , '..' , '..' , 'frontend' , 'dist' ) ,
3328 } ) ,
3429 ConfigModule . forRoot ( {
3530 isGlobal : true ,
36- envFilePath : '/app/. env', // * docker 내부 디렉터리 기준
31+ envFilePath : path . join ( __dirname , '..' , '. env') , // * nest 디렉터리 기준
3732 } ) ,
3833 TypeOrmModule . forRootAsync ( {
3934 imports : [ ConfigModule ] ,
4035 inject : [ ConfigService ] ,
4136 useFactory : ( configService : ConfigService ) => ( {
42- type : 'postgres' ,
43- host : configService . get ( 'DB_HOST' ) ,
44- port : configService . get ( 'DB_PORT' ) ,
45- username : configService . get ( 'DB_USER' ) ,
46- password : configService . get ( 'DB_PASSWORD' ) ,
37+ type : 'sqlite' ,
4738 database : configService . get ( 'DB_NAME' ) ,
4839 entities : [ Node , Page , Edge , User , Workspace , Role ] ,
4940 logging : true ,
@@ -59,9 +50,8 @@ import { TasksService } from './tasks/tasks.service';
5950 UserModule ,
6051 WorkspaceModule ,
6152 RoleModule ,
62- RedisModule ,
6353 ] ,
6454 controllers : [ AppController ] ,
65- providers : [ AppService , RedisService , TasksService ] ,
55+ providers : [ AppService ] ,
6656} )
6757export class AppModule { }
0 commit comments