我最近开始在Heroku上使用Ruby on Rails协作项目。我被添加为协作者并将远程环境添加到了我的开发环境中。经过一些开发后,我推送了一些更改,并没有遇到任何问题:
$ git push staging
staging是我远程的名称。之后,在尝试在Heroku上运行"rake test"时,我收到了一个错误:
$heroku run rake test --app staging
Running `rake test` attached to terminal... failed
! You do not have access to the app staging.
这很奇怪,因为我完全能够推动我的更改。我检查了Heroku面板,并看到我的推送已记录在那里。然后我尝试使用控制台查看日志,但出现了同样的问题。
$ heroku logs --app staging
! You do not have access to the app staging.
最后,我尝试访问控制台,但也失败了。
$ heroku run rails console --app staging
Running `rails console` attached to terminal... failed
! You do not have access to the app staging.
在这一点上,我更新了我的Heroku工具包安装,并使用"heroku auth"验证我的电子邮件是否显示出来,但错误仍然存在。我目前正在联系Heroku支持,但我希望有类似问题的人可以与我并行地提供帮助。
谢谢!