Pushing app to heroku problem

前端 未结 4 461
时光取名叫无心
时光取名叫无心 2020-12-12 08:27

I am trying to push my app to heroku and I get the following message:

$ heroku create
Creating electric-meadow-15..... done
Created http://electric-meadow-1         


        
相关标签:
4条回答
  • 2020-12-12 09:14

    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.

    0 讨论(0)
  • 2020-12-12 09:19

    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
    
    0 讨论(0)
  • 2020-12-12 09:24

    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
    
    0 讨论(0)
  • 2020-12-12 09:32

    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.

    0 讨论(0)
提交回复
热议问题