Capistrano recipes to make your deployments fast and easy.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
capistrano_recipes.gemspec

README.md

Capistrano Recipes Build Status Dependency Status

Powerful capistrano recipes to make your rails deployments fast and easy.

Quickstart Guide

Create a file called 'Capfile' in your application's root directory.

For a single environment add:

require 'capistrano/recipes'

use_recipes :assets, :bundler, :git

server 'Add your web server domain or ip here', :app, :web, :db, :primary => true

set :application, "Set application name here"
set :deploy_to,   "/path/to/your/app/here"
set :repository,  "Set repository location here"
set :domain,      "Set domain name here"

For a multistage environment add:

require 'capistrano/recipes'

use_recipes :assets, :bundler, :git, :multistage

stage :staging, :branch => :dev, :default => true do
  server 'Add your web server domain or ip here', :app, :web, :db, :primary => true
end

stage :production, :branch => :master do
  server 'Add your web server domain or ip here', :app, :web, :db, :primary => true
end

set :application, "Set application name here"
set :deploy_to,   "/path/to/your/app/here"
set :repository,  "Set repository location here"
set :domain,      "Set domain name here"

To add a single recipe:

use_recipe :bundle

To add multiple recipes:

use_recipes :assets, :bundle, :git, :multistage

Recipes

Recipe Documentation
:assets Assets recipe documentation
:bundle Bundle recipe documentation
:git Git recipe documentation
:multistage Multistage recipe documentation
:mysql Mysql
:nginx Nginx
:unicorn Unicorn

Installation

Add this line to your application's Gemfile:

gem 'capistrano_recipes'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano_recipes

Documentation

For more detailed information, visit the wiki.

Changelog

Look at the CHANGELOG to see what's changed.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request