views:

356

answers:

1

I've been reading all kinds of tutorials on how to deploy rails apps on heroku from windows.

I've tried installing git, heroku gem, generating ssh keys and setting paths and everything...

I get either public key error (without putty) or fatal no auth found (with putty)...

+3  A: 

After some setup problems -- indeed related to SSH keys -- I've successfully developed Rails/Sinatra applications on Windows and deployed those to Heroku. It works fine.

Generating the keys was a challenge -- I didn't keep notes, but I think I generated the keys with the Git GUI in which you can create a OpenSSH key. That key file is stored in ~/.ssh (so within C:\Documents and Settings\<account>\.ssh) as id_rsa with an accompanying id_rsa.pub. Since I wanted a seperate key for use in Heroku, I've renamed both files of the key pair to id_heroku / id_heroku.pub.

Finally, in the same folder, I've created a file config. That file contains

Host heroku.com
Hostname heroku.com
Port 22
IdentitiesOnly yes
IdentityFile ~/.ssh/id_heroku
TCPKeepAlive yes
User [email protected]
jschulenklopper
hmm, interesting, I shall give it another try
dakull
Oh, and that part `User [email protected]` should be your Heroku account name (= email address). I've got another folder `~/.heroku` that has a file `credentials`. That file contains two lines: the account name = email address, and your password.
jschulenklopper