I have an app that doesn’t need a
services section as per the docs:
You can have:
servicessection: The application has no mappings to the external internet - typically apps like databases that talk over 6PN private networking to other apps.
How do I specify a health check using a script?
This doesn’t seem to be doing it. There’s an implicit service that opens up 8080:
# fly.toml file generated for name here on 2023-04-02T08:37:33Z app = "name here" kill_signal = "SIGINT" kill_timeout = 5 primary_region = "lax" processes =  [env] RABBITMQ_PORT = 5672 SERVICE_NAME = "consumer" [experimental] auto_rollback = true [mounts] destination = "/usr/src/app/logs" source = "bot" [[services.script_checks]] command = "node dist/health_check.js" grace_period = "1s" interval = "5s" restart_limit = 0 timeout = "1s"
2023-04-03T16:18:49.055 health[f5363104] lax [error] Health check on port 8080 has failed. Your app is not responding properly.
I also tried adding a services section above
[[services]] http_checks =  processes = ["app"] protocol = "tcp" [services.concurrency] hard_limit = 25 soft_limit = 20 type = "connections"