On Sun, Oct 12, 2008 at 12:36 PM, marike <[EMAIL PROTECTED]> wrote: > >> I just double checked the README and I didn't see any mention of >> monit. Can you tell me what you're after here? Monit is a process >> monitoring server. If you are on dreamhost, you are probably running >> Lovd behind apache and phusion. If this is the case, monit is not >> required. > > I mentioned monit as the lovd-by-less README references this page: > > http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer which has a > section called "Use monit to monitor the DRb server" > > http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer#UsemonittomonitortheDRbserver
I see now. If you can't run monit you might try to use god instead. It does the same thing but is pure ruby so you might be able to install it. http://god.rubyforge.org/ > [castiglia]$ script/ferret_server -e production start > starting ferret server... > Loaded suite script/ferret_server > Started > > This is the part that I'm not understanding - The correct way to start/ > stop the ferret server in production when it is run as a Drb process. > The doc > http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer seems to be > running acts_as_ferret via the vendor/plugin directory and lovd uses > the gem. There are two start scripts in ferret and depending on the app you have to use one or the other (I've never figured this out, I'm not sure if it the version or the stack or what). The first is the one you are doing and the other is: ./script/ferret_start RAILS_ENV=production > > > I am deploying on Dreamhost using Apache, Rails 2.1.1, Passenger, > RubyGems 1.2, ruby 1.8.5. Obviously, I'm having difficulty setting up > acts_as_ferret properly as the existing documentation doesn't seem to > talk in detail about what's needed in config/environment.rb to > automatically start acts_as_ferret. Consequently, my app starts/runs > fine, but the Admin link which calls the 'search' method in the > Profile model throws a 'find_by_contents' error: > > > NoMethodError (undefined method `find_by_contents' for #<Class: > 0x2ab9c33fb900>): > /vendor/rails/activerecord/lib/active_record/base.rb:1618:in > `method_missing_without_paginate' > /vendor/gems/will_paginate-2.2.2/lib/will_paginate/finder.rb: > 164:in `method_missing' > /app/models/profile.rb:188:in `search' > /app/controllers/admin/users_controller.rb:39:in `search_results' > > > So I have commented out line 72 of profile.rb to start the app. I am > seeing this error in ferret_server.out > > [castiglia]$ cat ferret_server.out > > DRb::DRbConnError (druby://ferret.jazinc.com:9010 - #<SocketError: > getaddrinfo: Name or service not known>): > > This druby connection error is where I'm stuck and google is not > really helping in this area. I am running > > [F] acts_as_ferret = 0.4.3 > [F] ferret = 0.11.6 > > frozen in the vendor/gems directory, but many of the acts_as_ferret > docs online discuss the acts_as_ferret plugin (as I mentioned). So I > can't get a clear handle on > what is needed to configure acts_as_ferret/ferret. > > Thank you for for taking the time to respond to post (Sorry it got so > long). > > Markus Arike > > > It seems like maybe the ferret server is not actually starting. Try staring the app in dev mode to make sure everything is working properly (dev mode does not use drb). If it works in dev, then maybe you don't have permissions to start on that port. If it doesn't work in dev, maybe ferret/aaf is not install properly. steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lovd by Less" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/lovdbyless?hl=en Who loves ya baby? -~----------~----~----~----~------~----~------~--~---
