Today, I've had finally time to install RoR on my laptop in an attempt to see it at work. I was looking for an installer that would make things very simple, and indeed the guys on Ruby community made it available in the form of InstantRails. A zip file, containing absolutely everything you need to start playing with RoR and immediately see your toys. Excellent decission!
However, I've been a little bit intrigued by the fact that the zip file already contains a Ruby distribution (1.8.4) and also MySQL, both of which I have already installed. So I have tried to make it use the existing parts I had instead of its own copies. As advertised, RoR is about convention over configuration, so I couldn't figure out how to do this without some tricks [smile/].
The tricks are quite simple:
- copy all RoR related gems to your default Ruby installation
- copy all SCGI and Mongrel scripts to your default Ruby installation dir
- delete the
rubydirectory in InstantRails installation and use the excellent tool junction to create a link from
rubyto your Ruby installation dir
mysqldumputility to dump the example dbs in InstantRails
- create these DBs in your MySQL
- delete the
mysqldirectory in InstantRails installation and use again junction to create a link from
mysqlto your MySQL installation dir
I am posting this because I couldn't find any hints on achieving it on InstantRails mailing list archieves and I guess there may be other people trying to do it.