Welcome Guest | Login

my app isn't using the gems i unpacked in [myapp]/vendor/

Another newb here...

First off - got my app deployed and seems to be up and running.  Tuturial was useful/straightforward - thanks.

Some of my pages are throwing errors, so I'm trying to freeze my gem versions against the same ones on my dev server.  I followed the tutorial for unpacking local gem version in /vendor/, however, the logs show my app is using the shared gems in /usr/local/lib/ruby/gems/1.8/gems/

Do I need to do anything to override or specify that I'd like to use the ones in my vendor dir?  (Didn't see anything on the tutorial).

thanks!

2007-07-22 02:40 PM

It seems your app is still loading the Gem from the server. You may need to comment out the line that specifies the gem version in your environment.rb.

2007-07-22 03:11 PM

Thanks - I just commented out:

#RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION

in environment.rb and then I killed my process "killall -usr1 dispatch.fcgi"

but I'm still seeing it using the server gem's and not the ones in my app vendor folder.  

2007-07-22 03:21 PM

Jimbo - Ok, have you freezed this version of rails ?
Please have a look at   http://www.hostingrails.com/forums/wiki_thread/2 which will walk you through the steps to  Install and freeze your own RubyGems.
If you still have a problem, please contact support, so we can take a look at your app's setup.

2007-07-22 03:45 PM

Jimbo - hey lets step back a moment.

Regarding:
-----------
Do I need to do anything to override or specify that I'd like to use the ones in my vendor dir?  (Didn't see anything on the tutorial).
-----------

The answer is no (usually). If you have a gem unpacked or plugin in your vendor folder then Rails will automatically load it.   I'd like to know what the errors were before you started installing your own gems.  Furthermore, Rails 1.2.3 should be fully compatible with Rails 1.2.2 so I would recommend running the latest version.  

2007-07-23 02:09 AM


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