(NestJS) Health Check Failed

Hi, I deployed a NestJS Application on Railway and suddenly the Health Check stopped working. The Heath Check works fine from Localhost and returns with 200 OK
8 Replies
Percy
Percy6mo ago
Project ID: 938c3076-045c-45b4-9ab8-0ba7a836429d
user3244
user32446mo ago
938c3076-045c-45b4-9ab8-0ba7a836429d
Brody
Brody6mo ago
what do the deployment logs say?
user3244
user32446mo ago
Failed migration, that doesn’t impact the Health Check? Thanks for helping
Brody
Brody6mo ago
if your app never starts of course the health check won't succeed
ethan
ethan6mo ago
In the past I’ve had to set an environment variable called PORT and set it equal to whatever port the app was running on (probably 3000)
user3244
user32446mo ago
Resolved, sorry for this stupid Post 🫣🤦‍♂️😂
Brody
Brody6mo ago
no worries