Installing RoR on PenDrive

Hi,

I’m a very noob ror programer (i’ve started yesterday), but for my live,
i’ve pass all the day going up & down, and in order to have a constant
learning, i want to install ruby on rails, mysql, mysql-front, and
RadRails on a 512mb PenDrive.

I’ve followed these steps:

  1. Download latest RubyOnRails windows installer.
  2. Execute it settign the path to the desired folder into yout pend
    drive (i.e: G:\DATA\RUBYONRAILS)
  3. Go to sleep.
  4. When installed, type this on command:

cd <PEN_DRIVE_UNIT>
gem install rails --remote -i G:\DATA\RUBYONRAILS

  1. Be able to say YES to all question while sleeping.
  2. Download a non-installable IDE for RoR, copy the folder to the
    <PEN_DRIVE_UNIT> (i.e: RadRails)

Note: When i say: go to sleep, is because the extraction / gem
installation are veeery slow because of the usb port speed.

Also, i’ve developed a little app in C# .NET 2.0 to start Mysq,
Mysql-front and RadRails.

But the dream stops here. When i open RadRails and try to create a new
Rails project, i’ve got that message:

“rails” is not an intern or exter recognized command, program…

So i’ve configured it on:

Window / Preferences / Rails / Configuration

Not enought. Now when creating a rails project… :

“ruby” is not an intern or exter recognized command, program…

Ok. I’ve gone to Window / Preferences / Ruby / Installed Interpreters

And manually added “ruby” and the path on pen drive. Now, i have this
error:

H:/RUBYONRAILS/lib/ruby/site_ruby/1.8/rubygems.rb:301:in
report_activate_error': Could not find RubyGem rails (> 0) (Gem::LoadError) from H:/RUBYONRAILS/lib/ruby/site_ruby/1.8/rubygems.rb:238:inactivate’
from H:/RUBYONRAILS/lib/ruby/site_ruby/1.8/rubygems.rb:76:in
active_gem_with_options' from H:/RUBYONRAILS/lib/ruby/site_ruby/1.8/rubygems.rb:50:ingem’
from H:\RUBYONRAILS\bin\rails:15
from -e:3:in `load’
from -e:3

And that goes over me…

Please can anybody give me a gift or help?

Kas Naranja wrote:

  1. Execute it settign the path to the desired folder into yout pend
    drive (i.e: G:\DATA\RUBYONRAILS)
  2. Go to sleep.
  3. When installed, type this on command:

There are 2 distributions that will work straight off from an external
drive. The first is InstantRails and the other was announced on this
list a few weeks back but I couldn’t find it again. You may be able to
search the archives of the list for that. I think, if you’re just
looking for it from the idea of learning and doing initial development
(not deployment), InstantRails is a very good bet!

Cheers
Mohit.

On 4/29/07, Mohit S. [email protected] wrote:

Kas Naranja wrote:

Hi,

I’m a very noob ror programer (i’ve started yesterday), but for my live,
i’ve pass all the day going up & down, and in order to have a constant
learning, i want to install ruby on rails, mysql, mysql-front, and
RadRails on a 512mb PenDrive.

There are 2 distributions that will work straight off from an external
drive. The first is InstantRails and the other was announced on this
list a few weeks back but I couldn’t find it again. You may be able to
search the archives of the list for that. I think, if you’re just
looking for it from the idea of learning and doing initial development
(not deployment), InstantRails is a very good bet!

Okay, here is how to do it properly:
http://ruby.about.com/od/resources/ss/portable_ruby.htm
http://ruby.about.com/od/resources/qt/portable_rails.htm

This allows your apps to execute properly off of the pen drive.
It also has workarounds for when your pen drive maps to a
different drive letter.

I have followed these instructions and find them to work fine. I
would be worried about the long term effects on your USB drive.
You end up doing an awful lot of write operations.

Just as a precaution I would probably create Databases on the
windows C: drive (and copy them forward and back after use)

You can use SQLite instead of MySQL to save some space and minimize
writes
to your pen drive. I’ve done this before but I tend to use SQLite3 to
start
almost all of my projects.

Thank you all for reply.

I’ve succesfully crated a portable RoR with mysql-front and RadRaisl,
updating my app in order to set to the environtment variable PATH, the
path of the USB installed ror. It can be better, by the way.

Thank you richard for the links, i’ll try it!