Getting Up and Running on Heroku

March 12th 2010

I heard about toto on twitter and bookmarked it to look at later. I had forgotten about it until I saw that Usability Post had swapped over as well.

Sadly, the installation instructions assume quite a bit. This led to a couple of hours of setup before I could actually follow the instructions.

Step 1: Install Git

Installed via source on my VPS. Installed msysGit on my desktop.

Step 2: Create SSH Key

The title references Linux, but it works just as well from a msysGit window.

(Optional Step): Create a GitHub Account

Step 3: Create a Heroku Account

Step 4: Install Ruby and RubyGems

I found the Heroku QuickStart docs to be most helpful.

Step 5: Install Heroku and Toto Gems

$ gem install heroku $ gem install toto

Step 6: Add SSH Key to Heroku

$ heroku keys:add

Step 7: Track Your Application with Git

$ git init Initialized empty Git repository in .git/ $ git add . $ git commit -m “new app”

Step 7: Create your application on Heroku

$ heroku create (application name) Enter your Heroku credentials. Email: joe@example.com Password: Uploading ssh public key /Users/foo/.ssh/id_rsa.pub Created http://(application name).heroku.com/ | git@heroku.com:(application name).git Git remote heroku added

Step 8: Push your application to Heroku

git push heroku master

(Optional Step): Add-ons for Heroku

I installed the Custom Domains add-on so that orangexception.com would resolve to Heroku. It is pretty straight forward DNS updates. You’ll need to update your A and CName DNS records.

$ heroku addons:add custom_domains:basic —app (application name)

blog comments powered by Disqus