Welcome Guest | Login

I freeze rails and gems, but old hostingrails gem is still used

Hi,

I've been working on my facebook rails app on my local machine (using rfacebook 0.9.8 and rails 1.2.2). When I pushed it to hostingrails two weeks ago, there were some errors, and I had to install and unpack rfacebook-0.9.8 (and reinstall the rfacebook plugin) again, and everything worked.

Last night, in a subsequent deployment, though, nothing worked. I think that all the errors I'm getting are due to the fact that my gem environment is mixing old versions of the hostingrails gems (such as rfacebook-0.9.2, which I see in some of the traces) with newer ones in my vendor directory.

In order to troubleshoot this, I want to know how to show the gem 'environment': that is, print out the versions of all rubygems being used. Can anyone tell me how to do that in production && development environments? Also, are there any environment variables that can be set to force a specific version of a gem to be used? (now that require_gem is deprecated)

Any other ideas also appreciated. (Yes, I think it would solve my problem if the hostingrails guys would upgrade their rfacebook gem to the version I need, but I need to learn enough that I don't get 48 hours of downtime each time I deploy!)

Dave

2008-01-28 12:42 PM

First thing, yes, have support upgrade the server gem.

Second, check out ruby script/about

Third, you should be able to use 'gem' instead of 'require_gem'

2008-01-28 03:53 PM

I've deployed 3 rails apps successfully, and in each of them, ruby script/about yields:

mepipha@edwards [~/fijit]# ruby script/about
./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant Rails::Info (NameError)
       from ./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'
       from ./script/../config/../vendor/rails/railties/lib/commands/about.rb:2
       from script/about:3:in `require'
       from script/about:3

It works fine on my local machine and I'm happy to have found the command: just can't use it on hostingrails for some reason. Any ideas?

2008-02-02 01:41 PM

Hi - Please check out the link
http://dev.rubyonrails.org/ticket/8349

there is a patch released for this. Thank you

2008-02-02 02:16 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.