My app is using a different port rather than the main application process for checking the current state:
I’m trying to setup fly.toml
accordingly. For doing that, I first tried toservices.http_checks
[[services.http_checks]] grace_period = "5s" interval = "3s" path = "/health" method = "get" port = 3001 timeout = "2s" restart_limit = 2
And also tried
[[services.script_checks]] grace_period = "5s" interval = "3s" command = "curl http://localhost:3001/health" timeout = "2s" restart_limit = 2
These two ways are actually not present in the documentation and I saw them from other forum topics, so probably they aren’t implemented? What am I doing wrong?