David Heinemeier Hansson

October 3, 2024

Kamal 2: Thou need not PaaS

Kamal was our ticket out of the cloud. A simple tool for deploying containerized applications onto our own hardware, without the need for the complexity of something like Kubernetes. Kamal 2 is a huge leap forward for that tool, and it has just shipped. 

Now you can deploy multiple applications to the same server, and you can have SSL certificates automatically provisioned via Let's Encrypt. A big compression in complexity, especially when just getting started.

Because Kamal isn't just for high-end cloud exits where applications rely on an entire fleet of machines. It's also an excellent option for running a bunch of smaller apps on a single server. Imagine just how you can run on one of those amazing Hetzner EPYC 9454 boxes with 96 threads and 256GB of RAM that they sell for $220/month! 

Our move out of the cloud would not has been nearly as smooth or as fast without Kamal. And I'm thrilled we can share such a tool with everyone else who might want to reconsider the cost of Platform-as-a-Service setups. Kamal works great whether you're starting on a cheap $5 VPS, moving onto a fleet of cloud VMs, using dedicated-but-managed servers, or running your own hardware entirely.

In fact, it's chief mission is to allow you to move through all those stages of a production deployment without onerous migration costs or delays. We can't have competition in the cloud as long as folks are locked into proprietary or overly-complicated setups that makes moving from one vendor to another a huge hassle and expense.

If this sounds at all appetizing, checkout the new Kamal 2 demo, which shows how to deploy a simple Go application (Kamal isn't just for Rails!), how to add another Rails app on the same box, and how to move that Rails app onto a three-machine Hetzner cloud setup. All in under half an hour.

Enjoy Kamal 2!

kamal-demo.webp

About David Heinemeier Hansson

Made Basecamp and HEY for the underdogs as co-owner and CTO of 37signals. Created Ruby on Rails. Wrote REWORK, It Doesn't Have to Be Crazy at Work, and REMOTE. Won at Le Mans as a racing driver. Fought the big tech monopolies as an antitrust advocate. Invested in Danish startups.