Forum: Mongrel Mongrel_rails will not autostart

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2e92e2d51678f6b8eb6d87c699016044?d=identicon&s=25 Alexander Melle (mellex)
on 2009-04-29 09:51
Hi,

I'm running a ubuntu 8.04.2 LTS server. Using ruby 1.8.6 and Rails 2.0.2
I added the mongrel_rails start -d -c /app/ to the  /etc/rc.local

sofar so good..

Mongrel will start but will log

Missing the rails 2.0.2 gem. Please 'gem install -v=2.0.2 .....

and then terminate

When I log onto the the console I can start mongrel_rails and it will
locate the right gems

any ideas ?

Thanks ahead
Mellex
1727ebc9e802815ae2441122b9de28ac?d=identicon&s=25 Austin Godber (Guest)
on 2009-04-29 14:36
(Received via mailing list)
Perhaps the rails gem 2.0.2 is installed for your user but not
systemwide.  So its in ~/.gem rather than /usr/lib/ruby/gems/1.8
558dbe15276e505afa716b72e8a64cc9?d=identicon&s=25 Jerrod Blavos (Guest)
on 2009-04-29 15:29
(Received via mailing list)
this happened to me recently. turns out i had a vendored copy of an
older version of rails, which script/console will happily ignore if
you have specified a rails version in your config/environment.rb.

config/boot.rb is not so smart.

-Jerrod
2e92e2d51678f6b8eb6d87c699016044?d=identicon&s=25 Alexander Melle (mellex)
on 2009-04-29 16:00
Austin Godber wrote:
> Perhaps the rails gem 2.0.2 is installed for your user but not
> systemwide.  So its in ~/.gem rather than /usr/lib/ruby/gems/1.8

That was exactly the case .... now it's fine

Thanks for your help !

Mellex
This topic is locked and can not be replied to.