You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue that is already proposing this?
I have searched the existing issues
Is your feature request related to a problem? Please describe it
I lost a day trying to debug why only one of my two (dev and stage) NestJS apps would start at the same time on my server. In this release I had also added socket.io and believed it was the cause - it was not.
I had recently installed NestJS DevTools with the default configuration and did not specify a port. As a result both apps defaulted to port 8000. However, the second app will not start ( node dist/main.js ) - it does not output any Error or Info and the typical first terminal line for NestJS does not appear:
This line does not even display in terminal:
INFO [2024-09-05 12:09:25.053 +1000] (Nesula@Pino: /97304): Starting Nest application... {"context":"NestFactory"}
Describe the solution you'd like
In the DevTools Documentations update to show port value with a note:
@Module({
imports: [
DevtoolsModule.register({
http: process.env.NODE_ENV !== 'production'
port: 8000 /* Port must be unique amongst NestJS instances on same server */
}),
],
controllers: [AppController],
providers: [AppService]
})
export class AppModule {}
It would also be helpful to include async to allow use of the Nest configService:
DevtoolsModule.registerAsync({ /* ASYNCHRONOUS CONFIGURATION */
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (configService: ConfigService) => ({
http: configService.get('devtools.enabled'), /* Enable HTTP Devtools in development and stage environments */
port: configService.get('devtools.port'), /* Port must be unique amongst NestJS instances on same server */
}),
}),
Also, would it be possible to output to the terminal if the port is already in use or something that tells the user it is a DevTools related issue? I had completely forgotten I had installed DevTools and not yet deployed to stage app.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
I lost a day trying to debug why only one of my two (dev and stage) NestJS apps would start at the same time on my server. In this release I had also added socket.io and believed it was the cause - it was not.
I had recently installed NestJS DevTools with the default configuration and did not specify a port. As a result both apps defaulted to port 8000. However, the second app will not start ( node dist/main.js ) - it does not output any Error or Info and the typical first terminal line for NestJS does not appear:
This line does not even display in terminal:
INFO [2024-09-05 12:09:25.053 +1000] (Nesula@Pino: /97304): Starting Nest application... {"context":"NestFactory"}
Describe the solution you'd like
In the DevTools Documentations update to show port value with a note:
It would also be helpful to include async to allow use of the Nest configService:
Also, would it be possible to output to the terminal if the port is already in use or something that tells the user it is a DevTools related issue? I had completely forgotten I had installed DevTools and not yet deployed to stage app.
Teachability, documentation, adoption, migration strategy
See above for documentation update.
What is the motivation / use case for changing the behavior?
These reasons:
The text was updated successfully, but these errors were encountered: