Kamal is a deployment tool developed by 37signals,
designed to simplify the deployment of web applications by using Docker containers and the
Traefik
reverse proxy for seamless,
zero-downtime deployments.
Before
Before Rails 8, we had to manually install Kamal into our project and then do the setup.
Installation:
Or add it to the Gemfile of the project.
and then run
Initialize Kamal
This creates a default configuration file at config/deploy.yml and a .env file.
While creating a new rails app with rails new <app_name>,
an entry for kamal gem will be added in the Gemfile and
two additional files will be created with default configuration.
Default Configuration
Here are the contents of the
config/deploy.yml template:
Contents of .env.erb template
How to skip Kamal while creating a new Rails app?
If we don’t want to use kamal in our rails application,
we can always skip it by passing --skip-kamal flag while creating the app.
Documentation & References
Visit the official
Kamal
website for documentation and more information.