PDA

View Full Version : Does any one else understand hostmonster rails setup??



philz
12-21-2007, 09:28 AM
I have written a rails 2.0 application and I am trying to deploy it to my website. I am having quite a few difficulties.

I login using ssh and run "gem list". This returns rails (1.2.6). But when I do a gem udpate I get:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /usr/lib/ruby/gems/1.8/cache/mysql-2.7.gem

I have tried to followed another forum post. The steps involved I did were:
step 1: vi ~/bash_profile
step 2: add the variable
export GEM_HOME=$HOME/ruby/gems
step 3: cp -r /lib/ruby/gems/1.8/ ~/ruby/gems/
step 4: gem update
but gem list still returns the old version of rails. :( Still no joy.

In the hostmonster control panel the rails version is also 1.2.6 :(

Can anyone help tell me know to install the latest version of rails and install additional gems.

Depeche
12-21-2007, 10:03 AM
Can someone tell me what the heck Ruby on Rails is. People are getting me wanting to learn it.

shadmego
12-21-2007, 02:14 PM
I doubt seriously that you will be able to update rails on your server, as it is a shared hosting environment. Normal users do not, and should not have the permissions to update software installed in this environment because it will break other accounts.

You can, however, install extra gems through CPanel. To do so ...

1. log into your CPanel interface and locate the link called Ruby Gems located in the Software / Services section.
2. Follow the instructions on how to install the gem given on this page. Basically, you can search for any gems you want and it will install from the repository on rubyforge.org.

If you need help setting up your ruby environment (without attempting an update) there are several posts here that go into detail on how to do it. They even mention an incorrect path and how to correct it (I think ... it's been awhile since I've messed with ruby).

~regards

philz
12-22-2007, 04:48 PM
Yeah I think you might be right. So I will stick with the old version of my application running version 1.2.6 until they upgrade the servers or allow me to upgrade the version of rails using the control panel.
At the moment if I upgrade the rails version in the control panel it only goes to 1.2.6
I will post back here if I find out anymore information.

Depeche - Ruby on Rails is a web application framework if you want more information visit www.rubyonrails.org

Seb
12-23-2007, 11:33 AM
Budget ripoff of ASP.NET ;)

philz
12-24-2007, 06:37 AM
I would try ASP.NET but that would mean having to run windows.

Back to the subject, to let everyone else know that I got an email back from support "Due to issues with rails 2.0.2 we had to remove it from our system and use 1.2.6 until a more stable version of rails 2.0.2 is released." I haven't had any issues with 2.0.2 on my machine so that is a shame.