在git remotes中找不到远程产品

idr*_*ozd 2 git heroku heroku-toolbelt

因此,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
Run Code Online (Sandbox Code Playgroud)

同时,--application工作正常

? heroku run rails c -a my-app
Running rails c on ? my-app... ? connecting, run.4544 (Standard-1X)
Run Code Online (Sandbox Code Playgroud)

idr*_*ozd 6

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

heroku git:remote -r prod -a my-app-prod 
Run Code Online (Sandbox Code Playgroud)