search for: www_test_com

Displaying 1 result from an estimated 1 matches for "www_test_com".

2006 Jul 06
0
Multiple sites per rails install.
...ears that I can set the rails environment in the environment.rb file, and that I can connect that environment name to a database in the database.yml file. So could I somehow select the environment from the requested url with some fancy lookup code or translation (ie. www.test.com uses database www_test_com) in the environment.rb file or a custom environment in the environments directory? I am not sure exactly when the environment files are executed? Are they only executed once in the "** Starting Rails with development environment ..." startup step of mongrel. 2) Can we somehow use...