Browse Source

modif app module

main
HenriBoulnois 5 years ago
parent
commit
9bfb56c479
  1. 1
      Procfile.txt
  2. 1
      README.md
  3. 7
      src/app.module.ts

1
Procfile.txt

@ -0,0 +1 @@
web: yarn start

1
README.md

@ -25,6 +25,7 @@ $ yarn start:prod
## Test ## Test
```bash ```bash
# unit tests # unit tests
$ yarn test $ yarn test

7
src/app.module.ts

@ -18,6 +18,11 @@ import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
entities: [__dirname + '/**/*.entity{.ts,.js}'], entities: [__dirname + '/**/*.entity{.ts,.js}'],
synchronize: true, synchronize: true,
logging: configService.isLoggingDb ? 'all' : false, logging: configService.isLoggingDb ? 'all' : false,
extra: {
ssl: {
rejectUnauthorized: false
},
},
}), }),
inject: [ConfigService], inject: [ConfigService],
}), }),
@ -25,4 +30,4 @@ import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
controllers: [AppController], controllers: [AppController],
providers: [AppService], providers: [AppService],
}) })
export class AppModule {}
export class AppModule {}
Loading…
Cancel
Save