Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Capistrano tasks
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
capi.gemspec

README.md

Capi

Summary

Capistrano tasks

Installing

Add this to your Gemfile:

gem "capi"

Capfile

require 'capi/unicorn'
require 'capi/resque'
require 'capi/capi'

Using

For example. Add this to you config/deploy.rb to restart unicorn after deploy:

after "deploy:restart", "unicorn:restart"

In order to specify custom location of unicorn config and pid files you should set unicorn_config and unicorn_pid_file capistrano variables in your deploy.rb. For example:

set :unicorn_config, "#{deploy_to}/current/config/unicorn/test_api.rb"
set :unicorn_pid_file, ".../custom_location/unicorn.pid"

To invoke same rake task on remote server execute follow command cap capi:task_invoke. Example:

cap capi:task_invoke TASK="db:seed"
Something went wrong with that request. Please try again.