Prerequisites
- the
flyctlCLI installed - a Redop HTTP server
- a Dockerfile for the app you want to deploy
Minimal server shape
Minimal Dockerfile
Use a Dockerfile like this:dist, change the command to start the built output.
Deploy steps
- Add a Dockerfile for your Redop app.
- Run
fly launchfrom the app directory. - Let Fly generate
fly.tomlaround that containerized app setup. - Set secrets with
fly secrets set. - Deploy with
fly deploy.
Health checks
Add an HTTP check for Redop’s built-in health route:internal_port to 3000, keep your app listening on process.env.PORT ?? 3000 so local development and hosted deployment both work cleanly.
Verify the deployment
Check the endpoint after deploy:Redop note
Fly does not require a function adapter here. You can run the normal Redop Bun server shape as a long-running process inside a Docker image.Common mistake
Do not skip the HTTP health check. Routing works best when Fly can confirm/mcp/health before sending traffic to a Machine.