[Locomotive-users] Odd deployment issue from Loco -> DreamHost

Ryan Raaum ryan.raaum at gmail.com
Thu Nov 16 20:31:23 GMT 2006


On 11/16/06, Paul Welty <ponch at paulwelty.com> wrote:
>
> Thanks very much for the advice. I tried that. I got 'which ruby' and
> 'ruby
> -v' to return the right things on DreamHost. But, still no difference in
> behavior.
>
> So, now I'm wondering if somehow rails isn't using the new ruby. Is there
> a
> Rails status screen or something that would tell me which ruby it's using
> so
> I could compare that to Locomotive? (I tried the /rails/info/ but it
> doesn't
> seem to work at all anymore.)


>From the command line you should be able to do "ruby script/about" to see (I
think) the same information that is in the info properties page.

-r

On 11/16/06 11:40 AM, "Lori M Olson" <loriolson at mac.com> wrote:
>
> > On 16-Nov-06, at 8:09 AM, Paul Welty wrote:
> >
> >> I have a field that's serialized in my model with
> >> "serialize :field". This
> >> works fine going back and forth to a hash in Locomotive in
> >> development.
> >> 'field' always comes out as a hash. So, in development, I get a
> >> YAML::dump
> >> like this: !map:HashWithIndifferentAccess key1: "value1" key2:
> >> "value2"
> >>
> >> But, in production on DreamHost, the deseralization ends up like this:
> >>
> >> !ruby/object:YAML::Syck::DomainType domain: yaml.org,2002 type_id:
> >> map:HashWithIndifferentAccess value: key1: "value1" key2: "value2"
> >>
> >> Thus, of course, I can't use the hash methods. And Rails then
> >> generates
> >> errors like "undefined method `include?' for
> >> #<YAML::Syck::DomainType:0x407fb584>". And this, of course, breaks
> >> the whole
> >> app.
> >>
> >> I'm using Rails 1.1.6, and so is DreamHost.
> >>
> >> I tried:
> >> installing Ruby 1.8.5 on DreamHost
> >> installing a custom rails  package there
> >> freezing gems (including rails) into my app
> >>
> >> None of these make the slightest difference.
> >>
> >> I¹m guess this might be a DreamHost problem not a Locomotive
> >> problem, but who knows.
> >>
> >> Does anyone have any ideas what might be going on?
> >
> > I'm not a Dreamhost user, but those errors look suspiciously familiar
> > to a problem I had to solve on our production server a few weeks
> > ago.  It really looks like you have a Ruby version problem.  I would
> > try installing and using Ruby 1.8.4.
> >
> > Regards, Lori
> > _______________________________________________
> > Locomotive-users mailing list
> > Locomotive-users at lists.raaum.org
> > http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>



-- 
Ryan Raaum
http://raaum.org
http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20061116/86c616e6/attachment.htm


More information about the Locomotive-users mailing list