I have a rails project that I’ve been serving via WebBrick at work,
and its been working fine (low traffic). For the last few days I’ve
been trying to deploy it under Apache which already serves our groups
static and PHP pages. I have the dynamic rails part working now, but
am having problems with stylesheet references in static pages. My URL
using WebBrick was (and still is for development):
and now in Apache its below root since docroot has lots of existing
which in apache-land points to my rails public directory. The problem
is in the static HTML pages in public. They reference CSS files shared
with dynamic rails pages in /stylesheets. Under my WebBrick setup this
was OK, but under my new Apache setup they are in /auto/stylesheets,
so they are not loaded. Is there a good way to make the stylesheets
visible in both environments?
This seems like it would be a common problem. Are there best practices
for handling this situation? Also if anyone wants to comment on
ownership/permissions between my UID and under Apache it needing at
least r/w permissions to some files and dirs.
I’m using Rails 1.0 under Linux, RedHat AS 3.0.