Displaying 1 result from an estimated 1 matches for "_database".
Did you mean:
database
2006 Jul 31
4
switching database dynamically based on incoming request
...e that ENV
can''t be used in this fashion since it appears to only pick up
enviroment variables set for the fcgid process in general]
In principle we could do the same for the database by adjusting
database.yml like so:
development:
adapter: mysql
database: <%= request.env[''DEV_DATABASE''] %>
host: localhost
username: <%= request.env[''DEV_DATABASE_USERNAME'']
password: <%= request.env[''DEV_DATABASE_PASSWORD'']
The idea being to have a virtual host config like:
<VirtualHost virtualhost1.us.com:80>
ServerName virtualhost1.us...