Trouble deploying to DO’s app platform #1597
-
The error that I'm getting is during the deployment phase and reads "Deploy Error: Health Checks". Some details:
I'm assuming it's how I have my env vars set. Specifically NEXT_PUBLIC_SERVER_URL and PAYLOAD_PUBLIC_SERVER_URL, which I've tried every imaginable combination of things. I've tried writing a Dockerfile for it, but haven't had much luck with that either. I'm sure I'm doing something very dumb here. Any help would be extremely appreciated 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Typically, any platform's health check would be pinging the application to see if it received a good HTTP response. If it is a good response, it would be considered healthy. It sounds like DO's health checks are failing, so it is likely trying to restart your application. I'd check out their health check documentation here to see how it's configured. It looks like it checks on port 8080 as default - it should match your application port. These links look relevant: https://docs.digitalocean.com/glossary/health-check/ |
Beta Was this translation helpful? Give feedback.
Typically, any platform's health check would be pinging the application to see if it received a good HTTP response. If it is a good response, it would be considered healthy.
It sounds like DO's health checks are failing, so it is likely trying to restart your application. I'd check out their health check documentation here to see how it's configured. It looks like it checks on port 8080 as default - it should match your application port.
These links look relevant:
https://docs.digitalocean.com/glossary/health-check/
https://docs.digitalocean.com/support/my-app-deployment-failed-because-of-a-health-check/