Tuesday, August 5, 2008

Heroku gem on Ubuntu Hardy

Getting it to actually work was surprisingly annoying: it error'd out very ungracefully whenever I entered a username/password, which turned out to be relatively easy to fix.  command_line.rb (which lives in /var/lib/gems/1.8/gems/heroku-0.3.1/lib/heroku) needed to have a (require 'fileutils' ) inserted  at the top.  

With that problem solved, it complained about my ssh key (apparently vulnerabilities had been discovered), so I had to regen that.  This shouldn't be a problem if you've generated your ssh very recently: mine was a few months old.  

After that, it was basically just git annoyances.  You need to (git add .) before a (git commit), which is best done as (git commit -a -m "your message"), which adds everything in the pwd (and recursively beneath) and then commits with a message, in this case "your message".  Stealing blatantly from my older brother, I decided to make that faster to type and aliased (git commit -a -m) as gcm in my .bashrc.    (alias gcm='git commit -a -m')

No comments: