LoginSignup
18
22

More than 5 years have passed since last update.

RedmineにBacklog Pluginを入れる

Posted at

Redmineのインストール

私の過去記事を参考に実施してください。
http://qiita.com/gitya107/items/8a876ad2ea67335c3364

Backlog Pluginのインストール

下記URLに従って入れます。
http://www.redminebacklogs.net/en/installation.html

必要なパッケージのインストール
gem install holidays --version 1.0.3
gem install holidays
sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel

GitHubからBacklogをダウンロード
git clone git://github.com/backlogs/redmine_backlogs.git

ダウンロードしたファイルをredmineのプラグイン配下に移動
sudo mv redmine_backlogs /var/lib/redmine/plugins
sudo chown -R apache:apache /var/lib/redmine/plugins/redmine_backlogs

プラグインのフォルダに移動
cd /var/lib/redmine/plugins/redmine_backlogs

バージョンの表示
git tag

表示されたバージョンから選択します。とりあえず最新にしてみました。
sudo git checkout v1.0.6

インストールしたときにredmineフォルダをapacheユーザのものに権限変更してたなぁ
ゴリオシの対応
sudo usermod -d /home/apache -s /bin/bash apache

以降いじるフォルダはapacheユーザのものなので、ユーザ切り替え
sudo su - apache

環境変数の設定
RAILS_ENV=production
export RAILS_ENV

redmineインストールフォルダへの移動
cd /var/lib/redmine

何かnokogiriのバージョンがエラーなったので対応。。。。
gem install nokogiri -v '1.5.11'

nokogiriのバージョンUP。いっつもnokogiriで問題なるよなぁ
bundle update nokogiri

bundle install
bundle exec rake db:migrate
bundle exec rake tmp:cache:clear
bundle exec rake tmp:sessions:clear

Backlogのインストール
bundle exec rake redmine:backlogs:install

1 2 3を選んでみる

2.5.1.stable. You are running backlogs v1.0.6, latest version is 1.0.6

=====================================================
             Redmine Backlogs Installer
=====================================================
Installing to the production environment.
Fetching card labels from http://git.gnome.org...done!
Configuring story and task trackers...
-----------------------------------------------------
Which trackers do you want to use for your stories?
  1. バグ
  2. 機能
  3. サポート
Separate values with a space (e.g. 1 3): 1 2 3
You selected the following trackers: バグ, 機能, サポート. Is this correct? (y/n) y
-----------------------------------------------------
Creating a new task tracker.

何かトラッカーの名前入れてみる

Please type the tracker's name: test
You typed 'test'. Is this correct? (y/n) y
Story and task trackers are now set.
Migrating the database...** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:plugins:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:schema:dump
** Invoke redmine:backlogs:fix_positions (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:backlogs:fix_positions
done!
Installation complete. Please restart Redmine.
Thank you for trying out Redmine Backlogs!
-bash-4.1$

元のユーザに戻る
exit

サービス再起動
sudo service httpd restart

何か出来たっぽいです(笑)
あとで確認しよう。。。

18
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
22