Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/05/2012, 14:02
adavilam
 
Fecha de Ingreso: marzo-2009
Mensajes: 7
Antigüedad: 16 años
Puntos: 0
Mensaje de Servicio de Soporte

Copio a continuación el mensaje recibido de Soporte del Servidor. Ya tengo acceso via SSH pero no se como operar los comandos.

####Installing Rails 3

Install whatever version of rails you want (provided it's compatible with rubygems 1.7.2) as a local user:

gem install rails -v 3.0.11 --no-rdoc --no-ri

You'll need this in RAILS_ROOT/public/.htaccess which sets everything up including where to look for user-installed gems

<IfModule mod_passenger.c>
Options -MultiViews
PassengerResolveSymlinksInDocumentRoot on
#Set this to whatever environment you'll be running in
RailsEnv production
RackBaseURI /
SetEnv GEM_HOME /home#/<your_user>/ruby/gems
</IfModule>`

In shell run this series of commmands one line at a time.

cd
echo $HOME

Copy the output of that last one. You will need to add the following to your ~/.bashrc file, replacing the [your_home] with what you copied from the output of the last command.

export HPATH=[your_home]
export GEM_HOME=$HPATH/ruby/gems
export GEM_PATH=$GEM_HOME:/usr/lib64/ruby/gems/1.8
export GEM_CACHE=$GEM_HOME/cache
export PATH=$PATH:$HPATH/ruby/gems/bin
export PATH=$PATH:$HPATH/ruby/gems

Rails 2 is pretty much the same process except you use RailsBaseURI instead of RackBaseURI in the .htaccess:

<IfModule mod_passenger.c>
Options -MultiViews
PassengerResolveSymlinksInDocumentRoot on
#Change to your environment
RailsEnv development
RailsBaseURI /
SetEnv GEM_HOME /home#/<your_user>/ruby/gems
</IfModule>


(Note: Replace /home#/<your_user>/ with the correct path for your account)

If you need further assistance on this you will need to refer to the Ruby on Rails website at http://rubyonrails.org