RedmineにAgile Pluginをインストールしました。
チーム内で利用しているRedmineにAgile開発ツールの1つ「かんばん」を組み込みたい。
BitNamiがWindows向けにAllInOneパッケージとして提供しているRedmineにどう組み込むか?ネットを漁ってもドンピシャがなかったので書いておきます。
動作環境
OS:Windows Server 2008 R2 Standard SP1 64bit
Redmine version 3.0.4.stable
Ruby version 2.0.0-p645
Rails version 4.2.3
Database Mysql2
作業は
1.プラグインのダウンロード
2.フォルダコピー
3.コマンドラインからインストール
4.動作確認
の順で行いました。
1.プラグインのダウンロード
・Redmineで動くかんばんプラグインをhttp://www.redmine.org/pluginsで検索
Redmine3.0以降で動き、わりと頻繁にバージョンアップしているagilepluginがよさそう
・ダウンロードサイトへ行ってみる
http://www.redminecrm.com/projects/agile/pages/1
利用するにはお金がかかる?と思いきや、よく読むとかんばんなどの一部機能を限定したフリー版がある。
ユーザー登録しダウンロード完了
redmine_agile-1_3_11-light.zip
2.ファイルコピー
ダウンロードしたZipファイルを解凍
redmine_agileフォルダを以下のフォルダ直下にコピー
C:\BitNami\redmine-3.0.4-1\apps\redmine\htdocs\plugins
3.コマンドラインからインストール
インストール手順は解凍フォルダのREADME.rdocにあります。
= Agile plugin
== Install
* Copy redmine_agile plugin to {RAILS_APP}/plugins on your redmine path
* Run bundle install --without development test RAILS_ENV=production
* Run rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
== Uninstall
<pre>
rake redmine:plugins NAME=redmine_agile VERSION=0 RAILS_ENV=production
rm -r plugins/redmine_agile
</pre>
もちろん、この通りにやってもうまくいきません。
というわけで、ここからが本番
はじめにコマンドラインを起動しプラグインのフォルダへ
cd C:\BitNami\redmine-3.0.4-1\apps\redmine\htdocs\plugins\redmine_agile
最新のbundlerを取得。
gem install bundler --http-proxy=http://XXX.XX.XXX.XX:8080
環境変数に一時的にプロキシサーバーを設定
set http_proxy=http://XXX.XX.XXX.XX:8080
bundleからインストール
bundle install --without development test RAILS_ENV=production
C:\BitNami\redmine-3.0.4-1\apps\redmine\htdocs\plugins\redmine_agile>bundle inst
all --without development test RAILS_ENV=production
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.7.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.3
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.2
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.3
Using rack 1.6.4
Using rack-test 0.6.3
Using actionpack 4.2.3
Using globalid 0.3.5
Using activejob 4.2.3
Using mime-types 2.6.1
Using mail 2.6.3
Using actionmailer 4.2.3
Using actionpack-action_caching 1.1.1
Using actionpack-xml_parser 1.0.2
Using activemodel 4.2.3
Using arel 6.0.0
Using activerecord 4.2.3
Using coderay 1.1.0
Using daemons 1.2.2
Using eventmachine 1.0.3
Using thor 0.19.1
Using railties 4.2.3
Using jquery-rails 3.1.3
Using mysql2 0.3.18
Using net-ldap 0.3.1
Using protected_attributes 1.1.0
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using bundler 1.10.6
Using sprockets 3.2.0
Using sprockets-rails 2.3.2
Using rails 4.2.3
Using rbpdf 1.18.6
Using redcarpet 3.1.2
Using request_store 1.0.5
Using rmagick 2.13.4
Using thin 1.6.1
Using tzinfo-data 1.2015.5
Bundle complete! 29 Gemfile dependencies, 50 gems now installed.
Gems in the groups development, test and RAILS_ENV=production were not installed
.
Bundled gems are installed into ./vendor/bundle.
最後にマイグレーションするrakeコマンドを実行する。
rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
(in C:/BitNami/redmine-3.0.4-1/apps/redmine/htdocs)
rake aborted!
You have already activated rake 0.9.6, but your Gemfile requires rake 10.4.2. Pr
epending `bundle exec` to your command may solve this.
バージョンがどうたらでエラーとなり、bundle経由で再実行
bundle exe rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
C:\BitNami\redmine-3.0.4-1\apps\redmine\htdocs\plugins\redmine_agile>bundle exe
rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
(in C:/BitNami/redmine-3.0.4-1/apps/redmine/htdocs)
DL is deprecated, please use Fiddle
Migrating redmine_agile (Redmine Agile plugin (Light version))...
== 1 CreateIssueStatusOrders: migrating =======================================
-- create_table(:issue_status_orders)
-> 0.0050s
-- add_index(:issue_status_orders, :issue_id)
-> 0.0130s
-- add_index(:issue_status_orders, :position)
-> 0.0130s
== 1 CreateIssueStatusOrders: migrated (0.0360s) ==============================
== 2 CreateAgileColors: migrating =============================================
-- create_table(:agile_colors)
-> 0.0040s
-- add_index(:agile_colors, :container_id)
-> 0.0110s
-- add_index(:agile_colors, :container_type)
-> 0.0150s
== 2 CreateAgileColors: migrated (0.0340s) ====================================
== 3 RenameIssueStatusOrders: migrating =======================================
-- rename_table(:issue_status_orders, :agile_ranks)
-> 0.0180s
== 3 RenameIssueStatusOrders: migrated (0.0210s) ==============================
C:/BitNami/redmine-3.0.4-1/apps/redmine/htdocs/lib/tasks/redmine.rake:52:in `blo
ck (2 levels) in <top (required)>'
Tasks: TOP => redmine:plugins:migrate
(See full trace by running task with --trace)
4.動作確認
redmineを再起動したあとで、Webブラウザからプラグインを設定
agileタグを開くとかんばんが利用できる。よし!
0 件のコメント:
コメントを投稿