Knowledge Base - FAQ

Question: How do I setup my Ruby environment?

Kattare supports a ruby environment manager called the Ruby Version Manager, or RVM for short. It is a powerful way of being able to run any supported version of ruby you want from within your Kattare account.

A quick warning: Each version of Ruby you install is going to eat into your storage quota. In my experience, a full version of Ruby + Rails came out to be around 250 MB.

From the command line, run:

'rvm help' to get a list of help topics.
'rvm list known' to get a list of supported ruby versions.
'rvm install <version>' to install a copy of ruby into your account.

Typical installation of a new version will take 10-15 minutes. It does a custom download, compile, and install of everything you need.

For more installation information (eg, how to specify various patch versions, or subversion versions:

http://rvm.beginrescueend.com/rubies/installing/

'rvm use <version>' to use the version you just installed.

'gem install rails' to install rails into your new ruby
'gem install fcgi' to install fastcgi support (required by Kattare)
Important! After each installed gem you need to re-run 'rvm use <version>' to get it to pick up your new gems.
Important! If using rails >= 2.3.3 the fcgi dispatchers are not included unless you specify --with-dispatchers to your rails command.

'rvm --default <version>' to make the version you just installed the default for your account.

For more regarding setting the default version, see:

http://rvm.beginrescueend.com/rubies/default/

'rvm list' to get a list of your installed ruby versions.

'rvm help' for all kinds of handy rvm information.

And when you're all done setting up your environment, here's our howto for Setting up Ruby on Rails with FastCGI.



Last Modified: Jul 09, 2010


Select a category
Search:

Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.012 seconds by webmail in Corvallis, Oregon