<commit_before># capistrano-fiftyfive

**Additional recipes for use with Capistrano 3.x to automate installation of a
full-stack Rails environment!** No need to mess with Chef, Puppet, etc.
Several of these recipes are based on the
[Capistrano Recipes (#337)][cast337] and
[Zero-Downtime Deployment (#373)][cast373] episodes of RailsCasts.

We use these recipes at 55 Minutes to standardize our Rails deployments.
All recipes are tailored for:

* Ubuntu 12.04 LTS
* PostgreSQL
* Unicorn
* Nginx
* rbenv
* delayed_job
* [Postmark][] for mail delivery


## Installation

Please note that this project requires **Capistrano 3.x** which is a complete
rewrite of the Capistrano 2.x you may be used to. The two versions are not
compatible.

### 1. Gemfile

Add these gems to the development group of your Rails application's Gemfile:

    group :development do
      gem 'capistrano-bundler', :require => false
      gem 'capistrano-rails', :require => false
      gem 'capistrano-fiftyfive', :require => false, :github => '55minutes/capistrano-fiftyfive'
    end

And then execute:

    $ bundle


### 2. cap install

If your project doesn't yet have a `Capfile`, run `cap install` with the list
of desired stages (environments):

    cap install STAGES=staging,production


### 3. Capfile

Add these lines to the **bottom** of your app's `Capfile`
(order is important!):

    require 'capistrano/bundler'
    require 'capistrano/fiftyfive'
    require 'capistrano/rails/assets'
    require 'capistrano/rails/migrations'


### 4. Choose which recipes to auto-run

Most of the capistrano-fiftyfive recipes are designed to run automatically as<commit_msg>Clarify we need master branch of capistrano<commit_after># capistrano-fiftyfive

**Additional recipes for use with Capistrano 3.x to automate installation of a
full-stack Rails environment!** No need to mess with Chef, Puppet, etc.
Several of these recipes are based on the
[Capistrano Recipes (#337)][cast337] and
[Zero-Downtime Deployment (#373)][cast373] episodes of RailsCasts.

We use these recipes at 55 Minutes to standardize our Rails deployments.
All recipes are tailored for:

* Ubuntu 12.04 LTS
* PostgreSQL
* Unicorn
* Nginx
* rbenv
* delayed_job
* [Postmark][] for mail delivery


## Installation

Please note that this project requires **Capistrano 3.1** which is a complete
rewrite of the Capistrano 2.x you may be used to. The two versions are not
compatible.

### 1. Gemfile

Add these gems to the development group of your Rails application's Gemfile:

    group :development do
      gem 'capistrano-bundler', :require => false
      gem 'capistrano-rails', :require => false
      gem 'capistrano', :require => false, :github => 'capistrano/capistrano', :branch => :master
      gem 'capistrano-fiftyfive', :require => false, :github => '55minutes/capistrano-fiftyfive', :branch => :master
    end

And then execute:

    $ bundle


### 2. cap install

If your project doesn't yet have a `Capfile`, run `cap install` with the list
of desired stages (environments):

    cap install STAGES=staging,production


### 3. Capfile

Add these lines to the **bottom** of your app's `Capfile`
(order is important!):

    require 'capistrano/bundler'
    require 'capistrano/fiftyfive'
    require 'capistrano/rails/assets'
    require 'capistrano/rails/migrations'


### 4. Choose which recipes to auto-run

Most of the capistrano-fiftyfive recipes are designed to run automatically as
{'fraction_non_alphanumeric': 0.0897212543554007, 'fraction_numerical': 0.01596980255516841, 'mean_word_length': 4.188253012048193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2784317', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1009, 'n_words': 417}