プロジェクト

全般

プロフィール

Vote #71924

未完了

Multiple redmine production databases

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
0
issue_org_id:
11030
author_id:
56594
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリProjects_11 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0