Skip to content

Commit b5bd3a8

Browse files
committed
chore: Update Makefile to enable debugging during development
1 parent cb5b89f commit b5bd3a8

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
3+
// Pointez pour afficher la description des attributs existants.
4+
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "attach",
10+
"name": "Docker: Attach to Node",
11+
"remoteRoot": "/data"
12+
}
13+
]
14+
}

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ dev: ## Start development environment
2323
--network dev \
2424
--name $(APP_NAME) \
2525
-p $(APP_PORT):4000 \
26+
-p 9229:9229 \
2627
-v $(CURDIR):/data \
27-
$(IMG_NAME) yarn start:dev
28+
$(IMG_NAME) yarn start:debug
2829

2930
install: ## Install dependencies
3031
@docker run -it --rm \

src/app.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import { APP_FILTER, APP_GUARD, APP_PIPE } from '@nestjs/core';
1515
import { AuthGuard } from './_common/guards/auth.guard';
1616
import { MongooseValidationFilter } from './_common/filters/mongoose-validation.filter';
1717
import { DtoValidationPipe } from './_common/pipes/dto-validation.pipe';
18-
import {SettingstModule} from "~/settings/settings.module";
19-
import {MailerModule} from "@nestjs-modules/mailer";
20-
import {HandlebarsAdapter} from "@nestjs-modules/mailer/dist/adapters/handlebars.adapter";
21-
import {MjmlAdapter} from "@nestjs-modules/mailer/dist/adapters/mjml.adapter";
18+
import { SettingstModule } from "~/settings/settings.module";
19+
import { MailerModule } from "@nestjs-modules/mailer";
20+
import { HandlebarsAdapter } from "@nestjs-modules/mailer/dist/adapters/handlebars.adapter";
21+
import { MjmlAdapter } from "@nestjs-modules/mailer/dist/adapters/mjml.adapter";
2222

2323
@Module({
2424
imports: [
@@ -30,7 +30,7 @@ import {MjmlAdapter} from "@nestjs-modules/mailer/dist/adapters/mjml.adapter";
3030
imports: [ConfigModule],
3131
inject: [ConfigService],
3232
useFactory: async (config: ConfigService) => ({
33-
transport: config.get('mailer.host'),
33+
transport: config.get('mailer.host') || 'smtp://localhost:25',
3434
defaults: {
3535
from: config.get('mailer.sender'),
3636
},

0 commit comments

Comments
 (0)