I have two instances of lighttpd running on my server, both running the
same
RubyOnRails app. The configuration for each instance of lighttpd is
exactly
the same except for the first is running on port 8080 and RAILS_ENV is
set
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
around
with the system without messing up the production database which is due
to
be put into use shortly.
I can confirm that both instances are using the correct Rails
environment by
going to a non-existant page - the server on port 8080 brings up the
proper
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!
My
database.yml is configured properly, with both environments set to use
databasename_. Both databases exist.
Any ideas? Help is much appreciated.
Cheers
Luke