Monday, October 25, 2010

Heroku, rvm, and why the hell are they not working yet?

My friend dfr and some of his friends made http://stumie.heroku.com/ during http://railsrumble.com/ and he was showing me how cool it was and he sent me a project invite and I got an account and tried to install the heroku ruby gem so I could play too.

(Two other spare time projects from dfr: jshell.heroku.com and Ezy.)

By the way, this is based on what I read out of
$ history > heroku-history.txt | gedit heroku-history.txt

Make account on Heroku.
Have dfr invite you to the project. Check you email and click the link.
Check that Ruby and Git are installed.
$ sudo gem install heroku
$ heroku add: keys
$ heroku info --app stumie
$ git clone git@heroku.com:stumie.git
- get the rumble branch because master is outdated

Problems:
heroku: command not found
caused by how ruby installs on ubuntu if it's installed using apt-get
$ sudo apt-get install libssl-dev libreadline5-dev
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head
$ rvm

If rvm doesn't install (i.e. after installing you can't call it) try these
$ gem install rvm
$ rvm install 1.9.2

Did that work? if not, try:
$ rvm-install
$ run rvm

And/or go to the official howto
http://rvm.beginrescueend.com/rvm/install/

and/or irc channel here: http://webchat.freenode.net/?channels=rvm

home page for the rvm: http://rvm.beginrescueend.com/
after you get it installed, do rvm install 1.9.2
and then
$ rvm use 1.9.2

I have to remember to not push anything upstream yet!

Notes:
to see what gems you have,
$ gem list