Deploy Rails to Vultr
Run your Rails app on a Vultr server in your own account, with Postgres, MySQL and Redis, HTTPS and zero-downtime releases. Vultr bills you for the server directly, and Railyard adds no markup.
Steps
- 1
Create a Vultr API token
In your Vultr account, open API, enable it and copy the API key. If you use access control, allow requests from Railyard. Paste it into Railyard and tick Save it to the team, so it's reused for every server after this one.
- 2
Add a Vultr server
In Railyard, open Servers, then Add a server, then Create on your cloud, and pick Vultr, a region and a size. Railyard preselects vc2-1c-2gb (1 vCPU, 2 GB of memory). It creates the server in your Vultr account and installs Docker, Caddy and its agent in about two minutes.
- 3
Deploy your Rails repository
Paste the GitHub link. Railyard reads the repository, detects Rails and fills in the build, the port, the release command, workers and Postgres, MySQL and Redis.
- 4
Go live on HTTPS
Railyard builds on a separate build server, runs the release command, health-checks the new version and moves traffic only when it answers. Add your domain and the certificate is issued and renewed for you.
What Railyard sets up for Rails
- bin/rails db:prepare runs before every release.
- pg becomes Postgres, mysql2 or trilogy becomes MySQL, and redis or sidekiq becomes Redis.
- Sidekiq, Solid Queue, GoodJob, Resque and Delayed Job are offered as workers from your Gemfile.lock.
- Rails 8 cache, queue and cable databases each get their own connection string.
- Active Storage on disk gets a persistent volume, and SECRET_KEY_BASE is generated once.
Vultr regions
Thirteen regions across North America, Europe and Asia-Pacific.
- New Jersey
- Chicago
- Los Angeles
- Atlanta
- Miami
- Seattle
- London
- Frankfurt
- Amsterdam
- Paris
- Singapore
- Tokyo
- Sydney
Questions
Which Vultr server size should I start with?
Where does my Rails app's data live?
What does it cost to run Rails on Vultr?
Rails on other clouds
Deploy Rails to your own Vultr server.
No credit card. Your provider bills you for servers at its own price.
Free plan, no card, and 14 days of Pro for every new team. One flat price per team.