Healthcheck won't pass even if app is running during BUILD/DEPLOY
Usually, it fails 3-4 times and got success right after
Solution:Jump to solution
is your app listening on the host 0.0.0.0 and the environment variable PORT?
15 Replies
Project ID:
N/A
N/A
building during runtime?
I'm sorry, i didn't understand your question. Would you explain me with more details? Where can i check that?
why are you running a build command during runtime?
hmm, i'm checking that rn
just realized my mistake, i was calling build script twice. Thank you Brody.
did removing the build during runtime solve this?
I'm testing that rn, just a moment
No, still does not pass on healthcheck, i'm sending a image with the build during runtime fixed and another one with failure healthchecks
remove the health check temporarily
Solution
is your app listening on the host 0.0.0.0 and the environment variable PORT?
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
Thank u so much @Brody!
no problem!