Vote #71924
未完了Multiple redmine production databases
0%
説明
Feature to load database settings depends on host. For example I want provide redmine to more websites hosted on my server but run it only on one mongrel service.
How to do this?:
In file conf/database.yml
add support for more database settings in production based on host:
production:
www.onesite.com:
adapter: mysql
database: onesite-redmine
host: localhost
username: name
password: pass
encoding: utf8
www.twosite.com
adapter: mysql
database: twosite-redmine
host: localhost
username: name2
password: pass2
encoding: utf8
If is redmine loaded on page www.onesite.com/redmine it will load database settings from production/www.onesite.com and repositories will be loaded from repositories dir supplied by host.
Example repository dir for git:
D:\Server\repositories\git<host><project>
D:\Server\repositories\git\
Example repository dir for svn:
D:\Server\repositories\svn<host><project>
D:\Server\repositories\svn\
To better load production settings, database.yml can be stored separated in conf dir.
Example:
conf/
/database.yml
or
conf/.yml
journals
I guess this needs to be supported by Rails framework. database.yml is handled by Rails, not directly by Redmine.
--------------------------------------------------------------------------------