Project

General

Profile

Actions

Feature #11030

closed

Multiple redmine production databases

Added by AndzinSan Dono almost 12 years ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix

Description

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\www.onehost.com\testproj

Example repository dir for svn:

D:\Server\repositories\svn\<host>\<project>
D:\Server\repositories\svn\www.onehost.com\testproj

To better load production settings, database.yml can be stored separated in conf dir.
Example:

conf/<host>/database.yml

or

conf/<host>.yml

Actions #1

Updated by Ebrahim Mohammadi about 10 years ago

I guess this needs to be supported by Rails framework. database.yml is handled by Rails, not directly by Redmine.

Actions #2

Updated by Go MAEDA about 2 months ago

  • Category deleted (Projects)
  • Status changed from New to Closed
  • Resolution set to Wont fix

I am closing this issue because the configuration file database.yml and connecting to a database are handled by Ruby on Rails and there is almost nothing Redmine can do about it.

Actions

Also available in: Atom PDF