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: