Application failed to respond
mfstehling
TRIALOP

2 years ago

I'm trying to run the node.js + nest application but I get the error Application failed to respond.

Check the documentation at the following link: https://docs.railway.app/guides/fixing-common-errors. However, even if I follow the step-by-step instructions, the error still persists.

Here's my port and host configuration. How should I proceed to resolve this error?

async function bootstrap() {

  var app = await NestFactory.create(AppModule);

  // class validator / class transformer
  app.useGlobalPipes(new ValidationPipe({ transform: true }));

  // swagger
  app = configSwagger(app)

  const port = process.env.PORT || 3000

  await app.listen(port, '0.0.0.0');
}
bootstrap();

6 Replies

brody
EMPLOYEE

2 years ago

Deploy logs please -

https://bookmarklets.up.railway.app/log-downloader/


mfstehling
TRIALOP

2 years ago

Follow the build logs and deployment logs


brody
EMPLOYEE

2 years ago

Are you committing your dist folder to GitHub? if so, remove it from your repo and make sure that folder in your .gitignore.


mfstehling
TRIALOP

2 years ago

No, my .gitignore contains /dist and as you can see from the printout it didn't go to git

Attachments


brody
EMPLOYEE

2 years ago

What does your `start:prod` script contain?


mfstehling
TRIALOP

2 years ago

nest build && node --max-old-space-size=8192 dist/src/main.js

Loading...