0

Attempting to set up deploy notifications to Airbrake on Heroku deploy with rake airbrake:heroku:add_deploy_notification when you have multiple Heroku apps (i.e. git remotes) will yield:

 !    Multiple apps in folder and no app specified.
 !    Specify app with --app APP.

It appears Airbrake are aware of this but no real solution is offered.

Is there a work around?

Cœur
  • 37,241
  • 25
  • 195
  • 267
davetapley
  • 17,000
  • 12
  • 60
  • 86

2 Answers2

1

Prior to running rake airbrake:heroku:add_deploy_notification you can set a default Heroku remote by setting a git config heroku.remote to the desired branch.

So for example, to set up apps whose Heroku remotes are staging and production, you can:

$ git config heroku.remote staging
$ rake airbrake:heroku:add_deploy_notification

$ git config heroku.remote production
$ rake airbrake:heroku:add_deploy_notification

$ git config --unset heroku.remote
davetapley
  • 17,000
  • 12
  • 60
  • 86
0

A fix has now been pushed for this.

You can set the environment variable HEROKU_APP to the name of the app.

davetapley
  • 17,000
  • 12
  • 60
  • 86