Deployment airbrake:heroku:使用多个应用程序添加部署通知
当您有多个heroku应用程序(即git remotes)时,尝试使用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
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
设置为应用程序的名称