I have two instances of lighttpd running on my server, both running the
RubyOnRails app. The configuration for each instance of lighttpd is
the same except for the first is running on port 8080 and RAILS_ENV is
to “production” in the FCGI setup, and the other is running on port 8081
with RAILS_ENV set to “development”. This is so my clients can play
with the system without messing up the production database which is due
be put into use shortly.
I can confirm that both instances are using the correct Rails
going to a non-existant page - the server on port 8080 brings up the
404 error page, whilst the server on port 8081 brings up a Rails routing
error, consistent with production/development behaviour.
However, for some reason, they are both using the production database!
database.yml is configured properly, with both environments set to use
databasename_. Both databases exist.
Any ideas? Help is much appreciated.