How to Get Started Using the Heroku Toolbelt in Windows
Join the DZone community and get the full member experience.Join For Free
to get started with heroku, you need a public key. if you do not have one in the
c:\users\<yourusername>\.ssh folder, then you get this error
d:/program files (x86)/heroku/lib/heroku/auth.rb:195:in `read’: no such file or directory – c:/users/romiko/.ssh/id_rsa.pub (errno::enoent) from d:/program files (x86)/heroku/lib/heroku/auth.rb:195:in `associate_key’
looking at the source code, line 195 is ssh key generation. so what we need to do is use a utility like gitbash to do this for us:
to get up and running with the heroku toolbelt on windows ensure you read:
once you have read that and installed heroku toolbelt
then install git (or use the git bash if already installed)
now, what you do is follow all the instructions here, you might as well ensure you have a github account, its nice to put your code in a repository if developing:
you should then have these files (you might not have known hosts), if you did not connect into git
the heroku batch file will look for the id_rsa.pub file and use it to connect to the cloud servers.
once this is done, you can then go back to the heroku.cmd execution and login
d:\program files (x86)\heroku>heroku login
enter your heroku credentials.
found existing public key: c:/users/romiko/.ssh/id_rsa.pub
uploading ssh public key c:/users/romiko/.ssh/id_rsa.pub
that is it, so hope this gets you started on heroku
Opinions expressed by DZone contributors are their own.