Ruby, Rails, Puma and Nginx are not installed automatically: you start from a clean Ubuntu 24.04 system. Rails is free and open source; if you choose Kamal, plan for Docker and an image registry.
Choose the resources of your VPS
Ruby on Rails runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Install Ruby and Rails on an Ubuntu 24.04 VPS, run Puma behind Nginx with HTTPS or deploy with Kamal. A clear, step by step setup guide.
An Ubuntu 24.04 VPS with root access to run Rails, Puma and your database. You do the installation yourself; this guide breaks it into steps.
Step-by-step procedure
Order the VPS and connect
Order a VPS Mini with Ubuntu 24.04, then connect over SSH as root with your key. Update the system and create a dedicated user for the application.
Install Ruby and build tools
Install Ruby from the Ubuntu repositories with the headers and libraries needed to compile native gems. For another Ruby version, use a manager such as mise or rbenv.
Install Rails
Install the Rails gem, then check the version. Rails 8 requires Ruby 3.2 or newer, which Ubuntu 24.04 provides.
Deploy the code and prepare the database
Clone your repository as the dedicated user, run bundle install, copy config/master.key, then prepare the database and precompile assets in production mode.
Run Puma behind Nginx
Create a systemd service that starts Puma on local port 3000, then an Nginx server block with proxy_pass to 127.0.0.1:3000. Certbot then adds HTTPS.
Choose the resources of your VPS
Ruby on Rails runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Ubuntu 24.04
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Ruby on Rails on a VPS?
Ruby on Rails is a free web framework written in Ruby under the MIT license. It follows the MVC pattern and provides Active Record for the database, migrations, Action Mailer, Action Cable for real time features and Hotwire for interactive pages without heavy JavaScript. Since Rails 8, Solid Queue and Solid Cache let a small project run without Redis.
On a VPS you control the Ruby version, the native gems to compile, the database and the background processes. You can deploy by hand with Puma behind Nginx, or use Kamal, the deployment tool that ships by default with Rails 8, which builds a Docker image and starts it on your server.
Root access to compile native gems
Some gems need system libraries such as libyaml or libpq. With root access you install what is needed through apt without waiting on anyone.
Dedicated IPv4 for Kamal or Nginx
Kamal connects over SSH to the public IPv4 of the VPS and publishes your application there. With Nginx, your domain points to that same address.
Dedicated resources
The 2 vCPU and 8 GB of RAM of the VPS Mini are for Puma, Solid Queue and your database, not shared with other customers.
Rescue console and backups
If a deploy locks you out of SSH, the noVNC console in the panel gets you back in. A backup before each migration lets you roll back.
Before you start
Good to know: Ruby, Rails, Puma and Nginx are not installed automatically: you start from a clean Ubuntu 24.04 system. Rails is free and open source; if you choose Kamal, plan for Docker and an image registry.
Ubuntu 24.04 LTS (Ruby 3.2 in the repositories)
VPS Mini (2 vCPU, 8 GB RAM) to start
A domain name pointing to the VPS IPv4
Ports 22, 80 and 443 open
SQLite, PostgreSQL or MySQL depending on your app
An external SMTP service (port 587) for Action Mailer
Install Ruby on Rails on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and connect: Order a VPS Mini with Ubuntu 24.04, then connect over SSH as root with your key. Update the system and create a dedicated user for the application.
Install Ruby and build tools: Install Ruby from the Ubuntu repositories with the headers and libraries needed to compile native gems. For another Ruby version, use a manager such as mise or rbenv.
Install Rails: Install the Rails gem, then check the version. Rails 8 requires Ruby 3.2 or newer, which Ubuntu 24.04 provides.
Deploy the code and prepare the database: Clone your repository as the dedicated user, run bundle install, copy config/master.key, then prepare the database and precompile assets in production mode.
Run Puma behind Nginx: Create a systemd service that starts Puma on local port 3000, then an Nginx server block with proxy_pass to 127.0.0.1:3000. Certbot then adds HTTPS.
For which projects?
SaaS built with Rails
Online store or marketplace
JSON API for a mobile app
Internal tool with Hotwire
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Ruby on Rails on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Ruby on Rails on a VPS?
Order an Ubuntu 24.04 VPS, connect over SSH and install ruby-full, build-essential and libyaml-dev, then the Rails gem. Deploy your code, run bundle install, prepare the database with db:prepare and precompile the assets. Puma then runs as a systemd service behind Nginx, and Certbot provides the HTTPS certificate.
Which plan should I pick for a Rails application?
The VPS Mini (2 vCPU, 8 GB RAM, 40 GB storage) suits most Rails applications with their database on the same server. If you run many jobs, several Puma workers or a large PostgreSQL database, the VPS Essential (4 vCPU, 16 GB) gives you headroom. Rails does not publish a hardware minimum.
Is Ruby on Rails free?
Yes. Rails is free software under the MIT license, and Ruby is free as well. You only pay for the VPS. If you deploy with Kamal, you need a Docker image registry: some are free with limits, others are paid. Deploying with Puma and Nginx needs no third party service.
Kamal or Puma with Nginx?
Kamal, the default with Rails 8, builds a Docker image, pushes it to a registry and starts it on the VPS with kamal-proxy, which handles HTTPS on ports 80 and 443. Puma with Nginx and systemd is more manual but needs neither Docker nor a registry. On a single server both work; pick the one you will be able to maintain.
Which Ruby version is on Ubuntu 24.04?
The Ubuntu 24.04 repositories ship Ruby 3.2, which is enough for Rails 8. If your project asks for a newer release, such as the one in its .ruby-version file, install it with a version manager like mise or rbenv, as the Rails installation guide recommends.