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 git@heroku.com:rocky-gorge-9306.git (fetch) <---- old deleted app that does not exist
heroku git@heroku.com:rocky-gorge-9306.git (push)
origin https://github.com/liondancer/first_app.git (fetch)
origin https://github.com/liondancer/first_app.git (push)
I assume, you have public/private keys on your development machine. If not, do the following:
ssh-keygen -t rsa
Heroku configuration
heroku login
git remote -v
. If not, do the following: heroku git:remote -a your_heroku_app_name
git push heroku master
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.