Healthcheck won't pass even if app is running during BUILD/DEPLOY

Usually, it fails 3-4 times and got success right after
No description
No description
Solution:
is your app listening on the host 0.0.0.0 and the environment variable PORT?
Jump to solution
15 Replies
Percy
Percy10mo ago
Project ID: N/A
alvaroksin
alvaroksinOP10mo ago
N/A
Brody
Brody10mo ago
building during runtime?
alvaroksin
alvaroksinOP10mo ago
I'm sorry, i didn't understand your question. Would you explain me with more details? Where can i check that?
Brody
Brody10mo ago
why are you running a build command during runtime?
alvaroksin
alvaroksinOP10mo ago
hmm, i'm checking that rn just realized my mistake, i was calling build script twice. Thank you Brody.
Brody
Brody10mo ago
did removing the build during runtime solve this?
alvaroksin
alvaroksinOP10mo ago
I'm testing that rn, just a moment
alvaroksin
alvaroksinOP10mo ago
No, still does not pass on healthcheck, i'm sending a image with the build during runtime fixed and another one with failure healthchecks
No description
No description
Brody
Brody10mo ago
remove the health check temporarily
alvaroksin
alvaroksinOP10mo ago
Worked, do you have any idea what could it be? Getting 503 on requests, i think it might be an cors issue.
Solution
Brody
Brody10mo ago
is your app listening on the host 0.0.0.0 and the environment variable PORT?
alvaroksin
alvaroksinOP10mo ago
That did the trick! i forgot to set host variable on server listen (I was migrating from express to fastify) Will check if reactivating now healthcheck, it will pass just fine
alvaroksin
alvaroksinOP10mo ago
Thank u so much @Brody!
No description
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server