I am currently learning how to use Heroku and I'm having a bit of trouble.
When I type the commands
git push heroku master I get the message
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts. Permission denied (publickey). I currently have git set up on my computer with RSA key added for my machine.
I'm assuming there is a separate RSA key that I need to add to my heroku account? I'm not entirely sure.
***EDIT*************
I found out what was wrong. I needed to add my key
heroku keys:add ~/.ssh/id_rsa.pub However, I am having another problem now.
Basically, I created an rails app I wanted to upload but I deleted it on my heroku account. I created another app and I want to use this app. However when I
git push heroku master I will get the message
No such app as rocky-gorge-9306 Where rocky-gorge-9306 is my previous app, not the new one that I create
When I enter the command
git remote -v I get
heroku [email protected]:rocky-gorge-9306.git (fetch) <---- old deleted app that does not exist heroku [email protected]:rocky-gorge-9306.git (push) origin https://github.com/liondancer/first_app.git (fetch) origin https://github.com/liondancer/first_app.git (push)
heroku apps:info --app your-app-nameandgit remote -v show herokuare same.