Reputation: 2950
I know this is a common case but I have searched google/stackoverflow and none of the solutions fits. I have this RoR app that I'm trying to push to heroku. First I created gentle-savannah-1528
(dyno?) and I am trying git push heroku master
but then I get this error:
emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$
I have tried so many soluctions but none works. Can someone please help me save some time. I can't spend anymore time trying to figure out how to push to Heroku.
I already did:
emmanuels-imac:kal siaW$ heroku git:remote -a gentle-savannah-1528
emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$
Upvotes: 0
Views: 1448
Reputation: 1318
The error says « Please make sure you have the correct access rights ». You probably need to upload your public key to Heroku. Simply type this in your terminal:
heroku keys:add ~/.ssh/id_rsa.pub
This page on the Heroku website explains how to create one if you don't have one.
Upvotes: 0
Reputation: 13354
Sounds like you haven't created the remote
for Heroku
.
Following these instructions, make sure you've done:
heroku git:remote -a gentle-savannah-1528
Then try:
git push heroku master
Upvotes: 5