Advanced guides

As your Rails application becomes more popular, it will inevitably grow in complexity, the number of people using it will increase, and pretty much everything else goes up and to the right. Fortunately Fly can reduce some of that complexity by making global deployments easy and provide some best practices for scaling a Rails application on Fly.

SQLite3

This guide shows you how to use SQLite3 as your database

Terraform

This guide shows you how to deploy your Rails app on Fly Machines using Terraform

Multiple Fly Applications

At some point a Rails application will need to run additional services, like a Puppeteer server that takes screenshots of a webpage for your Rails application. Learn how to manage multiple applications from one Rails project to keep your monolith a monolith.

Multi-region Deployments

Architect Rails applications so they can run closer to your customers on servers deployed around the world.

AnyCable

This guide shows you how to replace Action Cable with AnyCable.

Machine API

This guide shows use the Fly Machine API using Rails

Phusion Passenger

This guide shows you how to replace the Puma web server with nginx and Phusion Passenger.

Litefs

This guide shows use LiteFS with Rails