lib/honeybadger/cli/heroku.rb in honeybadger-5.0.0.beta1 vs lib/honeybadger/cli/heroku.rb in honeybadger-5.0.0
- old
+ new
@@ -21,10 +21,10 @@
say("Unable to detect your environment from Heroku. Use --environment ENVIRONMENT.", :red)
say('Have you configured multiple Heroku apps? Try using --app APP', :red) unless app
exit(1)
end
- cmd = %Q(heroku addons:create deployhooks:http --url="https://api.honeybadger.io/v1/deploys?deploy[environment]=#{rails_env}&deploy[local_username]={{user}}&deploy[revision]={{head}}&api_key=#{api_key}"#{app ? " --app #{app}" : ''})
+ cmd = %Q(heroku webhooks:add -i api:release -l notify -u "https://api.honeybadger.io/v1/deploys/heroku?environment=#{rails_env}&api_key=#{api_key}"#{app ? " --app #{app}" : ''})
say("Running: `#{cmd}`")
say(run(cmd))
end