Displaying 1 result from an estimated 1 matches for "our_rails_app".
Did you mean:
your_rails_app
2006 Jul 31
4
switching database dynamically based on incoming request
...39;']
The idea being to have a virtual host config like:
<VirtualHost virtualhost1.us.com:80>
ServerName virtualhost1.us.com
SetEnv DEV_DATABASE virtualhost1
SetEnv DEV_DATABASE_USERNAME virtualhost1_username
SetEnv DEV_DATABASE_PASSWORD virtualhost1_password
DocumentRoot "/var/www/our_rails_app"
<Directory "/var/www/our_rails_app">
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
</Directory>
</VirtualHost>
However the request variable is not available for use in da...