Saturday, 28 July 2012

Troubleshooting Heroku/Git deployment

Trouble  shooting Heorku/Git deployment


Problem1:  Permission denied (publickey).
git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Solution:
  Add public key to heroku:
heroku keys:add ~/.ssh/id_rsa.pub

Problem 2: error:src refspec master does not match any.
$ git push heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'git@heroku.com:bliss.git'

Solution:
 You never committed. So, first commit and proceed.
$~ git commit -m 'initial commit'
$~ git push origin master

No comments:

Post a Comment