#Debugger

3 messages · Page 1 of 1 (latest)

tidal hornet
#

I have a monorepo with multiple nestjs servers, when running them all together only one of the server manage to attach a debugger and the rest prints they port 9227 is already taken

Any suggestions how to set a different port for each of the servers

sturdy crescent
#

Hey! you can change your application port on the main.ts file as follows:

async function bootstrap() {
  const app = await NestFactory.createMicroservice<MicroserviceOptions>;
  await app.listen(3000); //Here you change the port from your app
}
bootstrap();
tidal hornet