PDA

View Full Version : Switching Environment


ericplett
June 16th, 2006, 04:13 PM
Hello,

I have 2 versions of my rails site up and running, one for testing and one for production. But currently they are pointed to the same database.

What is the best way to change the environment from "developement" to "production" for one of the instances?

rob
June 16th, 2006, 08:09 PM
If you're running Lighttpd, you can have 2 configs and restart between them. If you're using FastCGI though, it can be a little tougher. A good rule of thumb is to not use FastCGI for a development mode app.