Kamal is the new Capistrano for the container era. A simple tool you can understand in a day or two. Business Class takes advantage of this and comes with a complete single-server configuration and excellent docs to get you started.
Here’s how you to deploy a brand new Business Class application:
$ mkdir ~/my_app
$ tar -xf ~/Downloads/template.tar -C ~/my_app
$ bundle install
$ bin/replace domainplaceholder.com ...
$ bin/replace 18.104.22.168 ...
$ bin/replace reponame ...
$ kamal setup
You only really need a virtual private server, domain name, and access to a Docker repository.
Most of the other things are done for you, including the generation of database passwords. You don’t even have to manually open
And the best part? The provisioning takes care about replacing root with a regular user, setting up a firewall, creating a swap space, or the right access rights for
PaaS is still a number one choice of how developers deploy today. Business Class documentation have tutorials on getting started with Fly.io and Render since the very beggining. I intent to improve these guides so they are even better for anyone running Rails in production. But just maybe, give Kamal a try. I made it as easy as I could. And it’s always good to have a choice.
Business Class is also getting a new website. Still half-baked, but already better. Have a look.