ALMiniumにRedmine Charts 2をインストールする方法

Redmine
By: yoppy

ALMiniumでチャートが表示されなかったのでCharts 2をインストールしました。
Redmine 2.0からはCharts 2でチャートを表示できます。

GitHub - pharmazone/redmine_charts2: Plugin which integrates with Redmine 2.0.3 and 2.1.x following charts: burndown, timeline, ratios of logged hours and issues, deviations of logged hours.
Plugin which integrates with Redmine 2.0.3 and 2.1.x following charts: burndown, timeline, ratios of logged hours and is...

 

Charts2のインストール

# cd /opt/alminium

# git clone git://github.com/pharmazone/redmine_charts2 plugins/redmine_charts2

# cd plugins/redmine_charts2

# git checkout redmine21

# cd /opt/alminium

# rake redmine:plugins RAILS_ENV=production

 

open_flash_chartを更新

「plugins/open_flash_chart」を削除してインストールし直しました。

# rm -rf plugins/open_flash_chart

# git clone git://github.com/pullmonkey/open_flash_chart.git plugins/open_flash_chart

# cp -r plugins/open_flash_chart/assets public/plugin_assets/open_flash_chart

 

古いChartsを削除

Apacheを再起動したときに下記のエラーが表示されるようになってしまいました。
エラー内容からCharts2のメニューが追加できないことが分かり、古いChartsプラグインを削除したところ解決しました。

Web application could not be started
Child already added (RuntimeError)
  /opt/alminium/lib/redmine/menu_manager.rb:348:in `add_at'
  /opt/alminium/lib/redmine/menu_manager.rb:275:in `push'
  /opt/alminium/lib/redmine/plugin.rb:254:in `menu'
  /opt/alminium/plugins/redmine_charts2/init.rb:43:in `block in <top (required)>'
  /opt/alminium/lib/redmine/plugin.rb:73:in `instance_eval'
  /opt/alminium/lib/redmine/plugin.rb:73:in `register'
  /opt/alminium/plugins/redmine_charts2/init.rb:23:in `<top (required)>'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
  /opt/alminium/lib/redmine/plugin.rb:130:in `block in load'
  /opt/alminium/lib/redmine/plugin.rb:121:in `each'
  /opt/alminium/lib/redmine/plugin.rb:121:in `load'
  /opt/alminium/config/initializers/30-redmine.rb:12:in `<top (required)>'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
  /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in <class:Engine>'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
  /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
  /opt/alminium/config/environment.rb:14:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
  /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:105:in `eval'
  /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:105:in `preload_app'
  /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:150:in `<module:App>'
  /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:28:in `<main>'
# rm -rf /opt/alminium/plugins/redmine_charts

 

 

コメント

タイトルとURLをコピーしました