over 1 year ago

https://dashboard.heroku.com/appspeaceful-plains-51827后,git仍然认为远程应该提交到该app网站上删除了
报错信息如下:
liu@liudeMacBook-Pro ⮀ ~/railsbridge/suggestotron ⮀ ⭠ master ⮀ heroku create
Creating app... done, ⬢ immense-sea-50976
https://immense-sea-50976.herokuapp.com/ | https://git.heroku.com/immense-sea-50976.git
liu@liudeMacBook-Pro ⮀ ~/railsbridge/suggestotron ⮀ ⭠ master ⮀ git push heroku master
remote: ! No such app as peaceful-plains-51827.

解决方法:
heroku git:remote -a immense-sea-50976(最后一个参数是你的app的名字)
重新git push heroku master即可

补充
官网解决方法参考:
已经在网站删掉heroku,push 完为什么还是错的那只?
来首先我们把抓错的这只给拔了:
git remote rm heroku
接着:
git remote -v
接下来:
git remote add heroku https://git.heroku.com/XXXXX.git
(XXXXX请换成你的heroku名称,并且注意包含完整网址)
最后:
git push heroku master
就可以了

← heroku login失败 20161210第2课总结 →
 
comments powered by Disqus