Rails hosting on your own server, deployed by your coding agent.
Ployz turns a server you rent into a platform your coding agent runs. Push to GitHub and it deploys your Puma web, your Sidekiq or Solid Queue worker, Postgres and Redis. Migrations run before every deploy, every pull request gets its own preview, and deleting a database waits for you.
One Rails app, five bills.
A small Rails app (one Puma web process, one Sidekiq worker, Postgres and a small Redis) costs $26 a month on Heroku, $30 on Railway, $51 on Fly.io and $59 on Render. The same app runs on a rented server for $7, and Ployz is free on it, custom domains included. At a medium size (two 1 GB web processes, 4 GB Postgres, 256 MB Redis) it's $105 to $316 on the platforms and $19 on a server. Move the sliders to match your app.
- RAM the stack needs
- 3.02 GB
- Heroku$26/mo
Smallest dyno with that RAM (Basic allows one per process type), Essential or Standard Postgres by size, Key-Value Store Mini, Premium-2 or Premium-5.
- Render (Hobby)$59/mo
Smallest plan with that RAM, Postgres storage $0.30/GB, Key Value from $10, traffic past 5 GB at $0.15/GB. Full-stack previews need Pro, $25 more.
- Railway$30/mo
$10/GB RAM and $20/vCPU a month, assuming the RAM is in use all month and 0.1 vCPU per GB. Egress $0.05/GB, volume $0.15/GB. Pro once the volume passes 5 GB.
- Fly.io (iad)$51/mo
Shared Machines at $6/GB RAM, Managed Postgres Basic, Starter or Launch (no 4 GB plan) plus $0.28/GB, Redis on its own Machine, egress $0.02/GB.
- Your own server + Ployz$7/mo
Smallest Hetzner CX23/CX33/CX43/CX53 with that RAM (1 GB added for the OS) and twice the database on disk, $0.60 IPv4. Ployz is free, custom domains included.
The per-platform maths, with every source, is in Heroku pricing, Render pricing, Railway pricing and Fly.io pricing. Server prices are Hetzner's in Europe. In the US, a DigitalOcean Droplet or Netcup's Manassas datacenter is the cheap option; see Hetzner vs DigitalOcean.
Everything a Rails app needs, on one server.
Rails 8 shipped saying you don't need a hosted platform. The idea is right: you shouldn't pay a platform many times the price of the server for a friendly deploy. Here's how a hosted platform's workflow maps onto your own server.
| What you need | Heroku, Render, Railway, Fly.io | Ployz on your server |
|---|---|---|
| Builds | Buildpacks, Railpack or your Dockerfile, depending on the platform | No Dockerfile needed for Ruby (Railpack runs assets:precompile for you), or use the Dockerfile `rails new` generates |
| Web and worker | A dyno, service or Machine per process, each with its own price | One service for Puma, one for Sidekiq or bin/jobs, sharing the server's RAM |
| Postgres and Redis | Managed add-ons, from $5 to $38 for the smallest Postgres | One-click Postgres and Redis on your server, with a restore point for each |
| Migrations | Release phase, pre-deploy or release command | A pre-deploy command, `bin/rails db:migrate`, runs before each deploy |
| Previews per PR | Review apps or PR environments, billed per service; Render needs Pro, Fly has none built in | A preview environment for every pull request, with its own HTTPS address, on your servers |
| Zero-downtime deploys | Yes, on most plans | With a health check set (Rails 8's /up works), the new version must pass it before the old one stops. Postgres and Redis have a short gap instead |
| Price | Per process, per add-on, per GB | Your server. Ployz is free on any number of servers, custom domains included |
What about Kamal? Kamal 2 ships with Rails 8, it's free and MIT licensed, and I think it's a great choice if you're happy owning a config/deploy.yml. It builds your image, pushes it to a registry and swaps containers with zero downtime. It has no dashboard and no preview environments, Postgres and Redis run as accessories that "do not have zero-downtime deployments", and across several servers you put a load balancer in front yourself. Ployz is for people who want Kamal's outcome with a UI, previews per pull request, a private network between servers, and a coding agent whose deploys, restarts and deletes wait for their approval. Git push deploys, five ways compares the two.
Do you still need Redis? Less than you used to. Rails 8's Solid Queue, Solid Cache and Solid Cable keep jobs, cache and WebSocket pub/sub in your database. In the Rails team's words, Solid Queue "replaces the need for not just Redis, but also a separate job-running framework." If you're on Sidekiq, keep Redis; it's one click either way. Set Redis to None above to see the Solid Queue bill.
What comes with it.
The bill above is the whole platform, not just the deploy step:
- A platform your coding agent runs. Paste one line into Claude Code, Codex or Cursor and it installs Ployz, adds your server and ships the repo. Every deploy, restart or delete your agent asks for waits for you to approve, and no setting turns that off.
- A restore point for every database. Restore it, or move the database to a bigger server with seconds of downtime (how, in the docs).
- Monitoring and searchable logs. CPU, memory, network and disk for Puma, the worker and every server, and every service's output searchable in the dashboard.
- An AI agent in the dashboard that answers questions about your app.
Railway alternatives, ranked by price compares the hosted options.
From repo to running app.
Run this from your Rails app's directory. Ployz installs itself on the server, builds the app and gives it an HTTPS address.
$ curl -fsSL https://ployz.sh | sh
Installs the ployz CLI on macOS or Linux.
$ ployz login
Signs in to Ployz Cloud in your browser.
$ ployz up --server root@your-server
Installs Ployz on the server, builds this directory and gives it an HTTPS address.
Or paste Read ployz.dev/agents.md and deploy this repo to my server. into your coding agent and it runs these steps for you. Then add Postgres (and Redis if you use Sidekiq) from the dashboard, reference DATABASE_URL from Postgres (the docs show how), set RAILS_MASTER_KEY as a sealed secret, add bin/rails db:migrate as the pre-deploy command, and add a worker service that runs bundle exec sidekiq or bin/jobs. Coming from Heroku, the migration steps cover copying the database.
Questions
Where is the best place to host a Rails app?
For the lowest bill, a server you rent: a 4 GB server runs Puma, a worker, Postgres and Redis for about $7 a month at Hetzner (Europe) or €8.26 incl. VAT at Netcup. If you never want to touch a server, Render or Railway are the closest to Heroku. Heroku itself still works but stopped adding features in February 2026.
How do I deploy a Rails app to a VPS?
With Kamal, you write config/deploy.yml and run kamal setup. With Ployz, you run ployz up --server root@your-server from the app directory; it builds without a Dockerfile and gives the app an HTTPS address. Either way you add Postgres, set RAILS_MASTER_KEY and run migrations before each deploy.
Do I need Kamal for Rails 8?
No. Kamal is the default Rails 8 ships with, not a requirement. The generated Dockerfile works with any tool that runs containers, and Ployz can build a Rails app without it.
Does Rails 8 still need Redis?
Not by default. Solid Queue, Solid Cache and Solid Cable run jobs, caching and Action Cable on your database. You need Redis if you use Sidekiq or want Redis for caching.
How do I run recurring jobs for Rails on Ployz?
Put recurring jobs in Solid Queue's config/recurring.yml, which bin/jobs runs as a worker service, or use sidekiq-cron.
Can my coding agent deploy my Rails app?
Yes. Paste "Read ployz.dev/agents.md and deploy this repo to my server." into Claude Code, Codex or Cursor. It installs the CLI, registers ployz mcp and deploys. Every deploy, restart or delete your agent asks for waits for you to approve, and no setting turns that off.
What does Ployz cost?
Nothing, on any number of servers, with unlimited projects, preview environments, custom domains and members, and the dashboard is hosted for you. You pay your server provider for the servers.
Your servers. The whole platform. Free on your own servers.
Deploy your appFacts checked 2026-11-16.