Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Capistrano

Report deploys to Rollbar from Capistrano

Capistrano Deploy Integration

Capistrano 3

Add to your Gemfile:

gem 'rollbar', '~>1.2.7'

Add to your Capfile:

require 'rollbar/capistrano3'

Add to your deploy.rb:

set :rollbar_token, 'POST_SERVER_ITEM_ACCESS_TOKEN'
set :rollbar_env, Proc.new { fetch :stage }
set :rollbar_role, Proc.new { :app }

NOTE: We've seen problems with Capistrano version `3.0.x` where the
revision reported is incorrect. Version `3.1.0` and higher works
correctly.

Capistrano 2

Add to your Gemfile:

gem 'rollbar', '~1.2.7'

Add to your deploy.rb:

require 'rollbar/capistrano'
set :rollbar_token, 'POST_SERVER_ITEM_ACCESS_TOKEN'

Available options:

rollbar_token
: The same project access token as you used for the
rails generate rollbar command; find it in
config/initializers/rollbar.rb. (It's repeated here for
performance reasons, so the rails environment doesn't have to be
initialized.)

rollbar_env

: Deploy environment name

Default: `rails_env`

For capistrano/multistage, try:

set(:rollbar_env) { stage }

Capistrano

Report deploys to Rollbar from Capistrano