Matheus
Technical Content @ Serverfy
Rails Without the Capistrano Complexity
Capistrano has been the standard for Rails deployment for years, but its configuration is complex and error-prone. With Serverfy, you get zero-downtime atomic deployments without writing a single deploy script.
Your Rails Production Stack
| Component | What Serverfy Provides |
|---|---|
| App Server | Puma with worker/thread management |
| Reverse Proxy | Nginx with asset serving |
| Database | PostgreSQL with automated backups |
| Background Jobs | Sidekiq as managed daemon |
| SSL | Auto-provisioned Let's Encrypt |
| Deployments | Atomic, zero-downtime with rollback |
| Monitoring | Server metrics + configurable alerts |
Deployment Flow
1. Provision & Configure
Provision a server with Ruby, Node.js (for asset compilation), PostgreSQL, and Redis. Serverfy sets everything up automatically.
2. Connect Your Repo
Link your GitHub/GitLab/Bitbucket repo and set your deploy script:
bundle install --deployment --without development test
RAILS_ENV=production bundle exec rails assets:precompile
RAILS_ENV=production bundle exec rails db:migrate
3. Push & Deploy
Push to your main branch. Serverfy creates a new release directory, runs your deploy script, health-checks Puma, and switches traffic atomically. If anything fails, it rolls back automatically.
Sidekiq Workers
Configure Sidekiq as a managed process through Serverfy. It starts on boot, restarts on failures, and scales with your server resources.
Why Not Heroku?
| Feature | Heroku | Serverfy |
|---|---|---|
| Pricing | Per-dyno ($25+/mo each) | Flat monthly + cheap VPS |
| Worker Processes | Separate dyno ($25+/mo) | Same server, no extra cost |
| Database | Heroku Postgres ($50+/mo) | PostgreSQL on server (included) |
| Monitoring | Add-on ($$$) | Built-in |
| Status Pages | Not included | Built-in |
Ready to Deploy Rails?
Leave Capistrano configs and expensive PaaS bills behind. Deploy Rails with Serverfy — Puma, PostgreSQL, Sidekiq, and zero-downtime included.