Deployment airbrake:heroku:使用多个应用程序添加部署通知

Deployment airbrake:heroku:使用多个应用程序添加部署通知,deployment,heroku,airbrake,Deployment,Heroku,Airbrake,当您有多个heroku应用程序(即git remotes)时,尝试使用rake airbrake:heroku:add_deploy_通知将产生: ! Multiple apps in folder and no app specified. ! Specify app with --app APP. 这似乎是一个问题,但没有真正的解决办法 运行rake airbrake:heroku:add\u deploy\u notification之前,您可以通过将git config

当您有多个heroku应用程序(即git remotes)时,尝试使用
rake airbrake:heroku:add_deploy_通知将产生:

 !    Multiple apps in folder and no app specified.
 !    Specify app with --app APP.
这似乎是一个问题,但没有真正的解决办法


运行
rake airbrake:heroku:add\u deploy\u notification
之前,您可以通过将
git config heroku.remote
设置到所需的分支来解决问题

因此,例如,要设置Heroku remotes为
暂存
生产
的应用程序,您可以:

$ 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

您可以将环境变量HEROKU_APP
设置为应用程序的名称