diff --git a/lib/rollbar/tasks/rollbar.cap b/lib/rollbar/tasks/rollbar.cap index bcb65f39..35eaf90f 100644 --- a/lib/rollbar/tasks/rollbar.cap +++ b/lib/rollbar/tasks/rollbar.cap @@ -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/'