---
title: "Railway health check: monitor after the deploy · Fettle"
description: "A Railway health check runs only while a new deployment starts, then stops. Here is what that leaves unwatched on a long-lived container and how to fix it."
url: "https://fettle.sh/use-cases/monitor-railway-app"
---

/ use-cases / monitor-railway-app

# Railway health check: monitor your app after the deploy

A Railway health check runs only while a new deployment starts, then stops. Here is what that leaves unwatched on a long-lived container and how to fix it.

Updated 2026-11-20 · Published 2026-08-24

[Start free](https://fettle.sh/register)

Free plan: 20 monitors every 3 minutes from 1 region. No card.

![Fettle monitor detail with the per-region breakdown table showing EU Central, US East and AP Southeast](https://fettle.sh/_next/image?url=%2Fscreenshots%2Fuse-cases%2Fmonitor-regions.webp\&w=3840\&q=75)

## Does Railway's health check keep running after a deploy?

No. Railway polls your [health check path](https://docs.railway.com/reference/healthchecks) only while a new deployment is starting, to decide when to switch traffic to it, and stops once the deployment is live. After that, Railway only notices a container that exits or crashes. Keeping the check running means an external monitor that requests the same path on a schedule.

Railway will run a health check for you if you configure one: point it at a path on your service, and Railway polls that endpoint for an HTTP 200 while a new deployment is starting, before it switches traffic over. That is a real safety net for bad deploys. Railway keeps the previous deployment active until the new one answers, and marks the deploy failed if it never does within the configured window (300 seconds by default).

What it is not is ongoing monitoring. Railway's own [healthcheck docs](https://docs.railway.com/reference/healthchecks) are explicit that the health check endpoint stops being polled the moment the deployment goes live. From that point on, nothing on Railway's side is asking your app whether it is still answering. It only checks whether the container process is still running at all.

That distinction matters more for Railway than for a serverless host, because a Railway service is a long-lived container, not a function invoked per request. Long-lived processes fail in ways a fresh invocation cannot. A connection pool runs dry and every request times out while the process never exits. A background worker's event loop deadlocks. A memory leak degrades the app long before it crashes outright. Railway's restart policy is set per service: always restart, never, or only on failure. It is triggered by the container exiting or crashing. A process stuck in one of the states above usually does neither, so the policy has nothing to catch.

Railway's status page, at status.railway.com, is a third source people sometimes reach for. It answers a different question again. It tracks incidents in Railway's own platform components, such as the dashboard, the API and the dev studio, not the availability of any one app deployed on the platform. It can read all-green while your service is down for reasons that have nothing to do with Railway's infrastructure.

None of this is a design flaw in Railway. A deploy-time health check plus a crash-triggered restart policy is a sensible, well-scoped feature. The platform's logs and metrics are genuinely useful once you already suspect something is wrong. It just is not the same thing as an external check that keeps asking your app "are you actually working" on a fixed schedule, whether or not the container process is still alive.

## What is worth monitoring

For an app running on Railway, an external check earns its keep exactly where Railway's own tooling stops looking:

- The public URL itself, checked on a schedule that does not depend on the container ever crashing. It is the same request the health check makes at deploy time, asked again and again after the deploy is done.
- Any custom domain pointed at the service, since its DNS and registrar sit outside Railway and can drift with nothing appearing in the Railway dashboard.
- The TLS certificate on that custom domain, watched on its own. An HTTP check that only confirms the certificate is valid now will not warn you before it is close to expiry.
- A route that actually exercises the dependency most likely to wedge the process: a database connection, a queue, or an internal service reached over Railway's private networking. A bare `/health` path returns 200 as long as the web server thread is alive, whether or not the app can do anything useful.
- Any background worker or scheduled job that runs as a Railway service with no public HTTP endpoint, such as a queue consumer or a nightly batch job. An HTTP monitor cannot reach a service like that; a dead man's switch can. Fettle's heartbeat monitors expect a ping from the job itself on a schedule and alert the moment a ping is late. That catches a worker that stalled silently, with nothing to fail an HTTP check against.

Checking from a single vantage point also hides regional path problems, as it would on any platform. If the service has traffic outside the region Railway hosts it in, check from more than one region.

## How to set it up in Fettle

1. Create an API key with write scope under [API keys](https://dashboard.fettle.sh/api-keys) in the dashboard sidebar, or add the monitor straight from the dashboard.
2. Add an HTTP monitor against the public URL: the real domain your users hit, not just the Railway-generated one. If the app depends on a database or another internal service, point it at a route that actually touches that dependency rather than a bare liveness path.
3. For any worker or cron-style service with no public URL, add a heartbeat instead. Have the job call its ping URL (`https://api.fettle.sh/v1/heartbeat/<token>`) as its last line, so a run that never finishes shows up as a late ping instead of silence.
4. The HTTP monitor from step 2 looks like this from the API:

```
curl -s -X POST https://api.fettle.sh/v1/monitors \
  -H "Authorization: Bearer fettle_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "name": "Production (Railway)",
        "type": "HTTP",
        "target": "https://my-app.up.railway.app",
        "interval_seconds": 60,
        "timeout_seconds": 10,
        "regions": ["eu-central", "us-east"]
      }'
```

`interval_seconds` has a plan floor and `regions` a plan cap. Railway's own deploy-time health check needs no interval at all, since it runs only once per deploy. Try a check against your own domain from more than one region, without creating anything, on the [multi-region check tool](https://fettle.sh/tools/multi-region-check) first. The full walkthrough for creating a key and reading results back is in the [quickstart guide](https://fettle.sh/docs/quickstart).

Prefer an MCP-aware client to raw `curl`? Point it at the same account with this one-liner:

```
{
  "mcpServers": {
    "fettle": {
      "url": "https://api.fettle.sh/mcp",
      "headers": { "Authorization": "Bearer fettle_your_key_here" }
    }
  }
}
```

## Which alerts to wire

A wedged container produces no crash for Railway's restart policy to react to and no failed health check for Railway to roll back, so the alert has to come from outside. Fettle sends alerts by email and Telegram on every plan, and to Slack, Discord or a webhook from Plus. Wire the channel your team already gets paged on for production incidents. The point of this monitor is catching exactly the failure mode Railway's own tooling is not positioned to see.

Two habits keep it from becoming noise. First, set a maintenance window (Pro and up) around planned redeploys. The brief gap while a new deployment's health check is still being polled then does not fire a false alert on the monitor watching the same URL from outside. Second, if the app is public-facing, put a status page in front of it. Railway's own status page stays green through an outage specific to your deployment, so your users need somewhere else to look.

How many monitors, heartbeats and status pages come with each plan is on the [pricing page](https://fettle.sh/pricing).

## Questions

- How do I keep a health check running on Railway after a deploy?

  Point an external HTTP monitor at the same path, or at a route that touches your database. Fettle requests it on a schedule from outside Railway, long after the deploy finished, and alerts you when it stops answering the way you expect.

- Will Railway restart my service if it stops responding?

  Railway's restart policy reacts to a container crashing or exiting, and you choose whether that means always, never, or only on failure. A process that is still running but stuck, with no exit and no crash, does not trigger it. That is why an external check on the actual response still matters.

- Does Railway's status page tell me if my app is down?

  No. status.railway.com reports on Railway's own platform components, such as the dashboard, the API and the dev studio. A fully green status page is compatible with your specific deployment being unreachable or broken.

## Try it by hand first

- [SSL certificate checker SSL checker: check any domain's SSL certificate online for free, with the issuer, validity window, days until expiry and full chain. No sign-up needed.](https://fettle.sh/tools/ssl-checker)
- [Multi-region website check Check a website from multiple locations at once: status code and response time from US East, US West, Europe and Asia. Free, with no sign-up needed.](https://fettle.sh/tools/multi-region-check)

## Related use cases

- [What is uptime monitoring? A developer's guide Uptime monitoring checks your sites, APIs and jobs from outside on a schedule and alerts you when they stop answering. How checks, regions and alerts work.](https://fettle.sh/uptime-monitoring)
- [How to monitor a cron job with a heartbeat A cron job that stops running fails no request and throws no error. Here is how a heartbeat monitor catches the silence and alerts you before users notice.](https://fettle.sh/use-cases/cron-job-monitoring)
- [How to set up SSL certificate expiration alerts SSL certificate expiration alerts catch the renewal that quietly stopped working. Here is what to check besides the date, and how to get warned early.](https://fettle.sh/use-cases/ssl-expiry-monitoring)
- [Vercel health check: monitor your app from outside Vercel monitoring covers builds and functions, not whether your site answers. Here is how to run a health check on the domain and its certificate.](https://fettle.sh/use-cases/monitor-vercel-app)
- [Fly.io health checks: monitor your app across regions Fly.io health checks decide routing per region, not whether your app is up everywhere. Here is what to monitor across regions and how to set it up.](https://fettle.sh/use-cases/monitor-fly-app)
- [Supabase health check: monitor REST, Auth and Storage A Supabase health check has to cover REST, Auth, Storage and Realtime, four services under one project ref. Here is what to check and how to set it up.](https://fettle.sh/use-cases/monitor-supabase-project)
- [How to monitor a scheduled GitHub Actions workflow A GitHub Actions cron schedule can be delayed, dropped or disabled without a failed run. A heartbeat ping alerts you when it stops running on time.](https://fettle.sh/use-cases/github-actions-cron-monitoring)

## Start monitoring in a minute

The free plan checks up to 20 monitors as often as every 3 minutes from 1 region, and emails you when one breaks. See [pricing](https://fettle.sh/pricing) for the paid intervals, or follow the [quickstart](https://fettle.sh/docs/quickstart) to do it from the API.

[Start free](https://fettle.sh/register)
