Enter your email below to watch this video
Application monitoring that helps developers get it done.
Deploy apps to servers that you own and control.
To deploy Lorem News, I’m using Hatchbx, a platform designed specifically for hosting Rails applications.
If we look at their website, Hatchbox offers affordable pricing at $10 per month per server, with a one-week free trial. Since I’m already signed in, let’s walk through the step-by-step process of deploying our application on Hatchbox from scratch.
The first thing we need is a cluster. I prefer Digital Ocean as my provider, but Hatchbox also supports Hetzner, AWS, Vultr, Linode, or even your own self-managed server.
I’ll go with the default name and connect my Digital Ocean account.
How Hatchbox Works
Hatchbox lets you bring your own servers from cloud providers. Unlike Heroku, which abstracts infrastructure management, Hatchbox allows you to fully own and manage your servers, while it automates the provisioning and deployment process.
Now that I’ve authorized Digital Ocean, I’ll select a server region. Since I’m in Berlin, I’ll choose Frankfurt 1 and continue.
A cluster is essentially a namespace where your servers live. But to actually deploy our app, we need to add servers to the cluster.
Hatchbox supports all Digital Ocean server types, but for this basic app, I’ll use the cheapest $4/month server.
Important: We need to enable both the web and cron responsibilities for this server since they are required for a Rails app.
We won’t need to provision:
Once the server creation process starts, it takes about 5–10 minutes to complete. Instead of watching spinners, let’s fast-forward to when the server is fully set up.
Now that our server is created and provisioning is complete, let’s explore how to manage deployments in the Hatchbox UI.
Under server details, you’ll find:
One of my favorite Hatchbox features is that you can rent a large server (from Hetzner, Digital Ocean, etc.) and deploy multiple Rails apps to a single machine. This saves costs by reducing the number of servers you need, making it a great option for indie developers who run multiple projects.
Now that our server is provisioned, we can add our application.
At this point, Hatchbox recommends adding a database (e.g., Postgres or MySQL), but since we’re using SQLite, we skip this step.
Similarly, we won’t configure domains or SSL certificates in this tutorial, since that depends on where you host your domain (Cloudflare, CloudFront, etc.).
Instead, we’ll deploy the app immediately. This triggers the first deployment, which takes about 5 minutes. We’ll fast-forward again to when it’s finished.
Once deployed, we can view the app in production.
While testing, I ran into an issue with site-wide search—it triggered a server error.
To investigate the error, we:
This second deployment runs faster than the first. After a couple of minutes, the fix is live.
Now, when we search for "excited", the correct post appears, confirming that our search is working properly.
Final Thoughts on Hatchbox In less than 15 minutes, we successfully deployed Lorem News to production.
Why I love Hatchbox for Rails apps:
For indie developers or small teams, Hatchbox is a powerful and cost-effective alternative to Heroku.