简体   繁体   English

在git remotes中找不到远程产品

[英]remote prod not found in git remotes

So, git somehow sees remotes of all my apps, but fails to use them when asked to: 因此,git以某种方式可以看到我所有应用程序的远程控制,但是在被要求执行以下操作时却无法使用它们:

❯ git remote -v
...
prod    https://git.heroku.com/my-app.git (fetch)
prod    https://git.heroku.com/my-app.git (push)
...

❯ heroku run rails c -r prod --verbose
 ▸    remote prod not found in git remotes

At the same time, --application works fine 同时,--application工作正常

❯ heroku run rails c -a my-app
Running rails c on ⬢ my-app... ⣷ connecting, run.4544 (Standard-1X)

所以,我不知道是什么导致了它,但是重新运行git:remote修复了它

heroku git:remote -r prod -a my-app-prod 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM