Project

General

Profile

Actions

Defect #10977

closed

Redmine shouldn't require all database gems

Added by George Xie over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Third-party libraries
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Among sqlite/postgresql and mysql, only one is needed of the three per installation, but ./Gemfile require all of them.
mysql is used in my installation, and I don't want introduce necessary libs, I have to comment those pg/sqlite lines.
I'm not familiar with ruby gems, but I think there is a way to avoid this.

Actions #1

Updated by Etienne Massip over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

As specified in RedmineInstall, you simply have to exclude the unnecessary driver gems when creating your bundle using the --without <...> option.

Actions #2

Updated by Daniel Black over 11 years ago

and now it seems it just installs those listed in your database.yml

Actions #3

Updated by Jean-Philippe Lang over 11 years ago

  • Subject changed from Shouldn't require all three kinds db driver to Redmine shouldn't require all database gems
  • Category set to Third-party libraries
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.3.0
  • Resolution changed from Invalid to Fixed

Indeed, bundle install will now only install the database gems that are in use in your database.yml.

Actions

Also available in: Atom PDF