Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to push master to heroku

Tags:

git

heroku

I'm unable to push use git push in github as well as heroku, i have tried various methods as suggested on this question . pls help to resolve this problem .. i see the following report while i try to push.

D:\My\weblog>git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

D:\My\weblog>ssh -v [email protected]
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to heroku.com [50.16.232.130] port 22.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debia
n-5pgsql1
debug1: match: OpenSSH_5.1p1 Debian-5pgsql1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'heroku.com' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/identity
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).

Am using windows 7 .

like image 356
sakthig Avatar asked Feb 27 '11 23:02

sakthig


People also ask

How do I push work to Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

Does heroku use master or main?

This change is backwards-compatible; user workflows that depend on master are not affected. We encourage customers to switch to the main branch.

How do I push to Heroku and GitHub at the same time?

You can use && as well to chain the commands i.e. git push origin master && git push heroku master. This will enable you to push on both platforms easily.


1 Answers

type in gem install heroku

Then upload rsa key of github to heroku

$ heroku keys:add
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub

Once you key in configured with heroku and github with command all your code goes to github and from there to Heroku

git push heroku master 

and soon you will see these messages

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Detected Rails is not set to serve static_assets
like image 166
Harshit Pandey Avatar answered Oct 02 '22 00:10

Harshit Pandey