简体   繁体   English

将应用程序推送到heroku问题

[英]Pushing app to heroku problem

I am trying to push my app to heroku and I get the following message: 我正在尝试将我的应用程序推送到heroku,我收到以下消息:

$ heroku create
Creating electric-meadow-15..... done
Created http://electric-meadow-15.heroku.com/ | git@heroku.com:electric-meadow-1
5.git

$ git push heroku master

 !  No such app as fierce-fog-63

fatal: The remote end hung up unexpectedly

It's weird that I am getting this now, I have pushed the app to heroku many times without issue. 我现在得到这个很奇怪,我已经将应用程序多次推送到heroku而没有问题。 the especially weird thing is, fierce-fog-63 is an old app that I made and deleted a long time ago. 特别奇怪的是, fierce-fog-63是我很久以前制作和删除的旧应用程序。 Why is it now that heroku is trying to push to this app that doesn't exist anymore, especially when I have created a new one? 为什么现在Heroku正试图推动这个不再存在的应用程序,特别是当我创建一个新应用程序时? Any suggestions? 有什么建议?

Type this and I think you'll see the problem: 输入这个,我想你会看到问题所在:

git remote -v

Fix it like this: 修复如下:

git remote rm heroku
git remote add heroku git@heroku.com:electric-meadow-15.git

I was getting the second error you posted "failed to push some refs to 'git@heroku.com:floating-stone-94.git' " (with a different app name) and i got rid of it by doing the following: 我收到你发布的第二个错误“未能将某些引用推到'git@heroku.com:floating-stone-94.git'”(使用不同的应用程序名称),我通过执行以下操作摆脱了它:

git remote rm heroku
heroku create

you should see a line that says 'Git remote heroku added'. 你应该看到一行“Git remote heroku added”。 Also

git remote -v

should now have the correct app. 现在应该有正确的应用程序。

For all the people who this does not work, check your ~/.heroku/credentials 对于所有不起作用的人,请检查〜/ .heroku /凭证
If the email or token does not match the account, you won't see your apps. 如果电子邮件或令牌与帐户不匹配,您将看不到自己的应用。

如果你到这里并认为你有类似的问题,但所有其他建议的东西都不起作用你可能想尝试:

heroku restart

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

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