将应用程序推向 heroku 问题

我试图把我的应用程序推到 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

奇怪的是,我现在得到这个,我已经推出应用程序 Heroku 多次没有问题。特别奇怪的是,fierce-fog-63是我很久以前开发并删除的一个旧应用程序。为什么现在 Heroku 想要推出这个已经不存在的应用程序,尤其是我已经创建了一个新的应用程序?有什么建议吗?

36340 次浏览

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 remote rm heroku
heroku create

you should see a line that says '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
If the email or token does not match the account, you won't see your apps.

If you got here and think you have a similar problem but all of the other stuff suggested does not work you might want to try:

heroku restart