diff --git a/src/app.module.ts b/src/app.module.ts index 457e33d..5b3a3a7 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -18,7 +18,7 @@ import { ConfigModule } from '@nestjs/config'; username: process.env.db_username, database: process.env.db_database, password: process.env.db_password, - port: 3306, + port: Number(process.env.db_port), synchronize: true, dropSchema: true, // elimina la base de datos // logging: true, // Habilita los logs para depuración diff --git a/src/main.ts b/src/main.ts index f76bc8d..c6207bd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,6 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); - await app.listen(process.env.PORT ?? 3000); + await app.listen(process.env.PORT ?? Number(process.env.app)); } bootstrap();