Has anyone successfully deployed to a hero from the Windows platform?

I read all kinds of tutorials on how to deploy rails applications on heroku from windows.

I tried installing git, heroku gem, generating ssh keys and setting paths and that’s it ...

I get either a public key error (without putty) or a fatal lack of auth found (with putty knife) ...

+4
source share
2 answers

After some configuration problems - really related to SSH keys - I successfully developed Rails / Sinatra applications on Windows and deployed them to Heroku. It works great.

Creating keys was a problem - I did not record notes, but I think I generated keys with a Git GUI in which you can create an OpenSSH key. This key file is stored in ~/.ssh (therefore inside C:\Documents and Settings\<account>\.ssh id_rsa ) as id_rsa with the accompanying id_rsa.pub . Since I need a separate key for use in Heroku, I renamed both the key pair files to id_heroku / id_heroku.pub .

Finally, in the same folder, I created a config file. This file contains

 Host heroku.com Hostname heroku.com Port 22 IdentitiesOnly yes IdentityFile ~/.ssh/id_heroku TCPKeepAlive yes User user@example.com 
+4
source

Alternatively, you can use puTTYgen.exe and paste the OpenSSH public key into the mykey.pub file and load it using the heroku keys: add c: \ mykey.pub

+1
source

Source: https://habr.com/ru/post/1309427/


All Articles