Forum: Ruby on Rails webrick works fine but lighttpd breaks on the most simple is

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
023e72ffa602242ce423a8fd25662062?d=identicon&s=25 shane (Guest)
on 2006-12-31 00:36
(Received via mailing list)
I've spent four hours trolling google search results and have scoured
my own logs and can find nothing.

Until recently I used Webrick for all my http server needs. Now I'm
going live to the outside world. So I download lighttpd-1.4.13.tar.gz
and perform ./configure and make install. I add /usr/local/sbin (where
lighttpd lives now) and I'm done. Fastcgi is built-in so I install no
other stuff.

I go to the top level of my ROR app (/home/smiller/beamon-erp) and
perform: script/server

Since lighttpd is on path it runs it instead of webrick. Realizing
there's no lighttpd.conf in my config directly, it copies one in from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/configs/lighttpd.conf and
then is off and running just fine.

I start my browser (firefox on RH linux) to localhost:3000 and I
immediately get this error:

no such file to load -- app/helpers/content_helper

RAILS_ROOT: /home/smiller/beamon-erp/public/../config/..
This error occured while loading the following files:

And yet, if I run webrick, instead of lighttpd, it works without a
scintila of a problem. Furthermore, there's no question but that
app/helpers/content_helper exists relative to the RAILS_ROOT:

ls -lad

-rw-------  1 smiller smiller 16928 Dec 18 18:50

Of course I had to add a trailing / to make the path right i.e. the
RAILS_ROOT needs a trailing / so that merely appending
app/helpers/content_helper[.rb] gives the correct path.

I suspect something more, likely-simple. What on earth is going on? The
development log does not report an errno value so I don't really know
why content_helper.rb isn't found.

This topic is locked and can not be replied to.