Powerful capistrano recipes to make your rails deployments fast and easy.
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
Recipe | Documentation |
---|---|
:assets | Assets recipe documentation |
:bundle | Bundle recipe documentation |
:git | Git recipe documentation |
:multistage | Multistage recipe documentation |
:mysql | Mysql |
:nginx | Nginx |
:unicorn | Unicorn |
Add this line to your application's Gemfile:
gem 'capistrano_recipes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano_recipes
For more detailed information, visit the wiki.
Look at the CHANGELOG to see what's changed.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request