I think I figured out this problem. All you had to do was add this line
to the top of environment.rb
ENV['GEM_PATH'] = '/home/USERNAME/.gems' + ':/usr/lib/ruby/gems/1.8'
The DH wiki says to put the following, but it didn't seem to work.
ENV['GEM_PATH'] = File.expand_path('~/.gems') +
':/usr/lib/ruby/gems/1.8'
I actually created a new test project in dev. mode and saw an error
some where like "couldn't expand ~" or "unknown comand expand_path" or
something like that and just put in the absolute path as above on a
whim. Then it worked fine.
anrake wrote:
> Hi, I am experiencing exactly the same phenomenon.
> Everything works find on my powerbook, but not on DH. I changed
> bash_profile to add my local .gems directory and installed ferret with
> no apparent problems. I added a line to environment.rb as instructed in
> the wiki but still get the same problems when I try to deploy my new
> site (via Capistrano). Likewise I think dispatch.fcgi is not starting.
>
> Any ideas?
>
> Chris Lowis wrote:
>> Does anybody have experience with running ferret on dreamhost ?
>>
>> My app is running ok until I install the acts_as_ferret plugin, at which
>> point I get "Rails application failed to start properly" errors. I've
>> used script/console to confirm that I can require 'ferret' and make a
>> new Index object . Everything appears to be ok in that respect.
>> Unfortunately there is nothing logged in these circumstances, except :
>>
>> [Wed Aug 16 07:10:23 2006] [error] [client 152.78.115.107] FastCGI: comm
>> with (dynamic) server
>> "/home/c_lowis/residence-review.com/public/dispatch.fcgi" aborted:
>> (first read) idle timeout (120 sec)
>> [Wed Aug 16 07:10:23 2006] [error] [client 152.78.115.107] FastCGI:
>> incomplete headers (0 bytes) received from server
>> "/home/c_lowis/residence-review.com/public/dispatch.fcgi"
>>
>> in the "apache" type logs that dreamhost gives me . Through trial and
>> error I am fairly sure it is ferret that is causing this, as when I
>> remove the plugin the site works ok.
>>
>> I am using ferret 0.9.5 . As far as I can see dispatch.fcgi is not
>> starting.
>>
>> Would appreciate any comments,
>>
>> Chris
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk