/capistrano-3-rails-template

Template for deploying Rails applications with Capistrano 3

Primary LanguageRuby

Capistrano 3 Rails Config

Overview

This is a sample configuration for deploying Ruby on Rails applications with Capistrano 3.1 including Zero Downtime Deployment with Unicorn and Sidekiq background Workers.

Usage

See http://www.talkingquickly.co.uk/2014/01/deploying-rails-apps-to-a-vps-with-capistrano-v3/ for a tutorial on usage.

Or for more details, this is also the example configuration used in the book Reliably Deploying Rails Applications available on Leanpub: https://leanpub.com/deploying_rails_applications

Minimal Requirements

You should have the following in your Gemfile:

gem 'capistrano', '~> 3.2.1'

# rails specific capistrano funcitons
gem 'capistrano-rails', '~> 1.1.1'

# integrate bundler with capistrano
gem 'capistrano-bundler'

# if you are using RBENV
gem 'capistrano-rbenv', "~> 2.0" 

# Use Unicorn as our app server
gem 'unicorn'

Additions

I have added Sphinx to this. So add to gemfile:

	gem 'thinking-sphinx', '~> 3.1.0'
	gem 'mysql2'

gordonbisnor fork is also referencing the following article: http://blog.isnorcreative.com/2014/09/02/rails-deploy-to-new-vps.html/ and the forked Rails server template: https://github.com/gordonbisnor/rails-server-template