RedMineのセットアップ
そろそろ、プロジェクト管理のための環境が必要だと思いセットアップしてみた。
- セットアップ方法
Redmine 0.9のインストール手順 | Redmine.JP Blog
CentOS向けのセットアップ方法
- 期限チケットのリマインダメールを送る設定
期日が間近のチケットをメールで通知する(リマインダ機能) — Redmine.JP
7時30分に毎日メールを送る
30 7 * * * root cd ”Redmineのインストールディレクトリ” ; rake redmine:send_reminders day=3 RAILS_ENV=production
- リポジトリを定期的にアップデートする
「リポジトリ」を開くまでSubversion等のリポジトリへのコミットが「活動」に表示されません — Redmine.JP
定期的にコミットの情報を取得させるには、「設定」→「リポジトリ」→「コミットを自動取得する」のチェックボックスをクリアした上で、 以下のコマンドをcronで実行させてください。
30分ごとにリポジトリをアップデートする
*/30 * * * * root cd ”Redmineのインストールディレクトリ” ; ruby script/runner "Repository.fetch_changesets" -e production
- ヘルプの日本語化
ヘルプを日本語化したい — Redmine.JP
”Redmineのインストールディレクトリ”/lib/redmine/info.rb を書きかえる
http://www.redmine.org/guide → http://www.redmine.jp/guide に変更する
module Redmine module Info class << self def app_name; 'Redmine' end def url; 'http://www.redmine.org/' end def help_url; 'http://www.redmine.jp/guide' end def versioned_name; "#{app_name} #{Redmine::VERSION}" end # Creates the url string to a specific Redmine issue def issue(issue_id) url + 'issues/' + issue_id.to_s end end end end
- Ticketの優先度によって色を変える。
Redmine - Labo of J
public/stylesheets/application.css で 「.highlight」 を探しその前ぐらいに↓を追加する。
.priority-1 {background-color:#D0E0F0;}
.priority-3 {background-color:#ffee88;}
.priority-4 {background-color:#ffbb99;}
.priority-5 {background-color:#ff5533;}
- ログローテーション
http://www.os.cis.iwate-u.ac.jp/wikky/wikky.cgi?redmine::Chapter3_%E5%BE%8C%E7%B7%A8
/etc/logrotate.dに「redmine」などファイルを作り以下のものを追加する
”Redmineのインストールディレクトリ”/log/*log {
missingok
notifempty
copytruncate
}
内容は少し古いが、基本機能が網羅的に書かれているので全体を把握するには便利。