我最近开始使用Ruby on Rails在Heroku上的一个项目中进行合作.我被添加为协作者并将远程添加到我的环境中.经过一些开发,我推了一些修改,没有问题:
$ git push staging
Run Code Online (Sandbox Code Playgroud)
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.
Run Code Online (Sandbox Code Playgroud)
这很奇怪,因为我完全能够推动自己的变化.我检查了Heroku仪表板,看到我的推送记录在那里.然后我尝试使用控制台查看日志,并出现同样的问题.
$ heroku logs --app staging
! You do not have access to the app staging.
Run Code Online (Sandbox Code Playgroud)
最后,我试图访问控制台,但它也失败了.
$ heroku run rails console --app staging
Running `rails console` attached to terminal... failed
! You do not have access to the app staging.
Run Code Online (Sandbox Code Playgroud)
此时我更新了我的Heroku工具箱安装,并使用"heroku auth"验证我的电子邮件是否显示,但错误仍然存在.我目前正在联系Heroku支持,但我希望有类似问题的人可以帮助我并行.
谢谢!