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
Percy9mo ago
Project ID: N/A
alvaroksin
alvaroksin9mo ago
N/A
Brody
Brody9mo ago
building during runtime?
alvaroksin
alvaroksin9mo ago
I'm sorry, i didn't understand your question. Would you explain me with more details? Where can i check that?
Brody
Brody9mo ago
why are you running a build command during runtime?
alvaroksin
alvaroksin9mo ago
hmm, i'm checking that rn just realized my mistake, i was calling build script twice. Thank you Brody.
Brody
Brody9mo ago
did removing the build during runtime solve this?
alvaroksin
alvaroksin9mo ago
I'm testing that rn, just a moment
alvaroksin
alvaroksin9mo 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
Brody9mo ago
remove the health check temporarily
alvaroksin
alvaroksin9mo 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
Brody9mo ago
is your app listening on the host 0.0.0.0 and the environment variable PORT?
alvaroksin
alvaroksin9mo 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
alvaroksin9mo ago
Thank u so much @Brody!
No description
Brody
Brody9mo ago
no problem!
Want results from more Discord servers?
Add your server