简体   繁体   中英

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 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

❯ 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 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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