Skip to content

Commit

Permalink
Merge pull request #368 from theist/patch-1
Browse files Browse the repository at this point in the history
Notify deploy only on primary :rollbar_role server
  • Loading branch information
jondeandres committed Feb 11, 2016
2 parents 2c78077 + 97a1979 commit e69a3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rollbar/tasks/rollbar.cap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace :rollbar do

desc 'Send the deployment notification to Rollbar.'
task :deploy do
on roles fetch(:rollbar_role) do
on primary fetch(:rollbar_role) do
warn("You need to upgrade capistrano to '>= 3.1' version in order to correctly report deploys to Rollbar. (On 3.0, the reported revision will be incorrect.)") if Capistrano::VERSION =~ /^3\.0/

uri = URI.parse 'https://api.rollbar.com/api/1/deploy/'
Expand Down

0 comments on commit e69a3e9

Please sign in to comment.