What is a Fly application?
Your Rails application is a Fly application, which means it has the following few things:- A
fly.tomlfile in the root directory - A
Dockerfilein the root directory that describes the image - A “server” running on Fly’s infrastructure.
Creating a Fly application within a Fly application
The important thing about creating multiple Fly applications within a project is keeping them organized. For our example, we’ll setup a Redis server application and keep it in the./fly/applications folder within our project repo.
Let’s get started by running the following commands:
fly/applications/redis folder, run:
Dockerfile and fly.toml file that can be further configured for your application’s needs.
Next, deploy the application: