DZone
Cloud Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Cloud Zone > How to Get Started Using the Heroku Toolbelt in Windows

How to Get Started Using the Heroku Toolbelt in Windows

Romiko Derbynew user avatar by
Romiko Derbynew
·
Feb. 23, 12 · Cloud Zone · Interview
Like (0)
Save
Tweet
13.15K Views

Join the DZone community and get the full member experience.

Join For Free

hi guys,

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:

instructions

to get up and running with the heroku toolbelt on windows ensure you read:

http://devcenter.heroku.com/articles/quickstart

once you have read that and installed heroku toolbelt

http://assets.heroku.com/heroku-toolbelt/heroku-toolbelt.exe

then install git (or use the git bash if already installed)

http://msysgit.googlecode.com/files/git-1.7.8-preview20111206.exe

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:

http://help.github.com/win-set-up-git/

you should then have these files (you might not have known hosts), if you did not connect into git

image

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.
email: romikov@gmail.com
password:
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 smile

source: http://romikoderbynew.com/2012/01/25/getting-started-with-heroku-toolbelt-on-windows/

Git Cloud Execution (computing) GitHub Bash (Unix shell) Repository (version control)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Developers Need to Know About Table Partition Pruning
  • Artificial Intelligence (AI) And Its Assistance in Medical Diagnosis
  • Implementing Microservices Architectures
  • Is NoOps the End of DevOps?

Comments

Cloud Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo