it's a pretty good practice to freeze rails in any production
environment to avoid updates that might affect your app. This way, no
matter if you are local or deploying on the server it will always run
off of what version you froze into the app.
------------------
1) Using File Manager in your cPanel make a copy of the .bashrc file
in your root directory, name it .bashrc.bak.
2) Now edit the .bashrc file and add the following to the end of the
file:
3) Using your favorite SSH client connect to your site.
4) at the prompt type:
cp /usr/lib/ruby/gems/1.8/cache/sources-0.0.1.gem ./
gem install sources-0.0.1.gem
gem update -y
This will update rails to the latest version and install it to your
local gem directory.
-----------------
The output of gem update -y was only a message that no gems were
updated. (Actually it was something like gems updated.)
I tried to do gem install rails, and it ended up installing a local
copy of rails 1.2.0.
Any ideas?
Thanks.
1. I tried updating by following the above steps but failed.. there was
no file named sources-0.0.1.gem I just downloaded it from rubyforge and
2. tried: "gem update -y" but there were many errors on rails
installation.
3. but "gem install rails" got rails 2.0.2 installed without any
issues.. so far so good. got to test it by using a rail app to make sure
it works
hope this helps..
I was able to install rails 2.0.2 to my local directory also and was
able to successfully create a rails 2.0.2 project. HOWEVER, I get the
"Rails application failed to start properly" when I test out my
application. Does anybody know why this is? Is it because the server
can't handle rails 2.0.2 requests?
BTW, I can get a rails 1.2.6 project working fine on bluehost by
changing the permissions in the public directory. However like i said,
no luck with rails 2.0.2.
Does anyone know how to change the path to a specific rails installation
you would like the server to use? For example, i installed rails 2.0.2
in my local directory, but when i'm making requests to the server its
still using the rails installed on the /usr/lib/ruby/1.8.
Do you have a vendor directory where you installed Rails? Normally if
you have a vendor directory your app should refer to the Rails setup
contained there first.
Do you have a vendor directory where you installed Rails? Normally if
you have a vendor directory your app should refer to the Rails setup
contained there first.