Guides
Advanced
Capistrano Deployment Guide
Traditional server deployment using Capistrano for Ruby applications
Overview
Capistrano is a traditional server deployment tool that connects via SSH, pulls code from Git, and manages application restarts.
Server Setup
Install dependencies including Ruby, Node.js, PostgreSQL, and set up systemd services for the application and background jobs.
Configuration
Configure config/deploy.rb with repository URL, deploy path, and linked files/directories.
Commands
cap production deploy:check- Check connectivitycap production deploy- Deploycap production deploy:rollback- Rollback
Web Server
Configure Nginx or Apache to proxy requests to the Rails application with SSL via Let's Encrypt.