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
ruby
directory in InstantRails installation and use the excellent tool junction to create a link fromruby
to your Ruby installation dir - use
mysqldump
utility to dump the example dbs in InstantRails - create these DBs in your MySQL
- delete the
mysql
directory in InstantRails installation and use again junction to create a link frommysql
to 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.
3 comments:
I guess I am overlooking something very simple here but I can't create the junction. Can you post a quick sample of what you typed in the prompt to get junction to create the "junction" on the MySQL part?
I have done:
junction C:\InstantRails\mysql C:\Program Files\MySQL\MySQL Server 5.0
but that doesn't seem to work. What am I doing wrong?
I think the problem might be that the target folder path has spaces. I guess you should double quote it, as in junction mylink "C:\Program Files\"
./alex
--
.w( the_mindstorm )p.
I was in the same situation. These instructions helped me use existing MySQL. Now I will try the same with Apache! Thanks!
Post a Comment