How to Deploy App Servers and Databases Easily and for Free
CREATED: 2026 / 06 / 27 Sat
UPDATED: 2026 / 06 / 27 Sat
I had always deployed servers on AWS using ECS or EC2, but recently I got a request to deploy something for free, so I looked into it and ended up deploying a Rails app using a Render + Supabase setup. Rails on Render, PostgreSQL on Supabase — that’s the gist of it. 👀
Since I looked into other services at the time too, I’m putting together a quick summary below. 👇
Services for Server Deployment
In terms of category, these would be considered PaaS.
Heroku
This one has long been famous as a Rails deployment target. You’ve probably heard of beginner engineers building Rails apps and deploying on Heroku (though I’m not sure how common that still is these days).
I’ve actually never used it myself, but it turns out it’s a Salesforce product.
It’s well known that they run on AWS infrastructure, but what I care about is the cost.
There’s a system called Heroku Dynos — a kind of orchestrator for managing isolated containers — and deploying on it costs at least $5/month.
Official site: Cloud Application Platform Pricing & Plans | Heroku
Dynos come in two types: Ceder and Fir. Ceder is the standard offering, while Fir is built on Kubernetes and seems to have better observability.
I vaguely remember when Heroku used to be free, and I recall seeing various articles from people migrating away once that changed. 🤔
Official site: Heroku
Fly.io
I feel like this used to come up a lot as a migration target from Heroku, back in the day. My impression is it was also free originally, but from what I can tell now it’s gone paid.
That said, it’s not like the costs are crazy, and when setting up networking and servers on AWS feels like overkill, something like this starts to look appealing.
Official site: Fly.io Pricing Calculator
Like Heroku, this one also runs on borrowed AWS infrastructure.
Official site: Fly.io
Render
I didn’t know about this one, but it’s a PaaS you can use for free. That said, the free tier comes with quite a few limitations.
The following restrictions made things pretty painful, but since this was just a small internal tool, we decided it was good enough.
- Server goes to sleep automatically after 15 minutes of inactivity
- Can’t specify commands to run at deploy time (no Entrypoint execution)
- No shell access
- No memory or CPU monitoring
- Maximum 512MB memory
Honestly, for anything you’d deploy as a real service, the free tier just doesn’t cut it. But if you can live with these limitations, it is usable at no cost.
One thing worth noting: the sleep issue can be worked around by using Google Apps Script to send a request to a health check endpoint every 15 minutes. Though I’m a bit unsure whether Render would actually be okay with that as a workaround…
It’s easy to use. But man, those limitations are a pain. 😎
Official site: Render
Services for Database Hosting
These would fall under SaaS or BaaS.
Supabase
Supabase is a service that provides PostgreSQL.
My impression is it originally came out as a Firebase alternative, and to me it feels like a service for using PostgreSQL in a serverless way.
Setup was easy — I just created a project, set DATABASE_URL on the Rails side, and ran migrations.
It also has a built-in SQL editor which looks handy.
The free plan has a 500MB storage limit, so if you can stay under that, Supabase seems like more than enough.
Official site: Supabase
Neon
This is also a service for using PostgreSQL in a serverless way. Though I haven’t actually used it.
It seems to support Git integration and Vercel integration. A free plan is also available. 👇
Official site: Neon
PlanetScale
PlanetScale is a service that provides MySQL.
I think there used to be a free tier, but looking at it now it seems like the minimum is around $5.
It’s affordable though, so it seems like a solid option when you want a simple deployment.
Official site: PlanetScale
Wrapping Up
It feels like these kinds of services often launch for free, generate buzz for a while, and then eventually go paid. 👀 Using a server for free is kind of unrealistic to begin with, so it makes sense that’s where things end up. Some like Render still offer a free tier, but the restrictions are pretty rough. 🤔
Speaking of which, I heard that Oracle Cloud Infrastructure offers an Always Free service where you can use a server indefinitely. Apparently there’s a cap on available slots though, so it becomes a bit of a race to claim one. 👇