![]() ![]() ![]() The server’s host key is not cached in the registry. To avoid getting this error when using plink, Notice that I added 2 keys to pageant upon launch, that’s because I have an existing key pair for slicehost, you only need to add the heroku_key.ppk. “C:\Program Files\PuTTY\pageant.exe” “C:\Documents and Settings\(username)\(folder)\heroku_key.ppk” “C:\Documents and Settings\(username)\(folder)\some_other_key.ppk” If you wish to auto launch Pageant at startup, you can add this link to Windows startup folder Launch Pageant and add heroku_key.ppk to it. Next comes the public key but don’t click “Save public key”, instead open up notepad, copy and paste the public key string at the top of the PuTTYgen window and save it hereĬ:\documents and settings\(username)\.ssh\id_rsa.pub You can save the keys with or without a passphrase, it’s up to you, I didn’t. Once the key generation is done, click “Save private key” and save the private key to a folder of your choice, name it something like heroku_key.ppk. Now, setup your SSH public/private keys using PuTTYgen, I used SSH-2 RSA. First off, make sure you have the latest Putty version installed (V0.6), if not, you will get a nondescript error later onįatal: The remote end hung up unexpectedly Next comes the tricky Putty / Plink / Pageant setup. You might see a a bunch of warning messages about CRLF being replaced by LF, no biggie. Here’s Heroku quickstart guide on deploying an app, it’s written more for Mac / Linux developers though the basic steps are the same.įollow these steps to get your application added to your local Git repository If you are currently using SVN with your app, I suggest you export a fresh copy to a new folder and use that instead because I have no idea if SVN and Git will play nice together in the same app. Get your Rails app ready, either create a new one or use an existing one. It has to be V1.3.0 (latest is V1.4.0) or else “gem install heroku” will barf on you. Since I use Putty (not Tortoise), I set GIT_SSH to C:\Program Files\PuTTY\plink.exe, notice no quotes around it. Screen 1: Run Git from Windows Command Prompt.So off I go to install Git on Windows and the first thing I suggest you do is to read this excellent post on Git on Windows install because trust me, you will be confused with what choices to accept during installation. First off, I’m new to Git, the word in the open source community is that all the cool kids are using it and in Heroku’s case, it’s not a choice but a necessity, it’s the only way they allow you to upload code to their server. I ran into more errors that I can shake a stick at especially since I’m using Putty / Plink / Pageant to handle ssh. I decided to give it a try in my attempt to migrate off slicehost which I’m currently using.īoy, I had no idea what I was in for trying to get an app uploaded (not even running yet) to Heroku. One reason is that the basic version is free though you are only allowed a max of 5MB for the database. Ok, so I have heard from several Rails developers about how much they like Heroku. ![]()
0 Comments
Leave a Reply. |