2012年12月27日 星期四

Install Redmine on Windows

Redmine 是 Bug Tracking System,可以和 Subversion (SVN) 結合。
有人做了比較表,請參考這一篇

安裝步驟主要參考這三篇:

http://www.redmine.org/projects/redmine/wiki/RedmineInstall
http://blog.miniasp.com/post/2011/12/27/Install-Redmine-on-Windows-Notes.aspx
http://kevingo75.blogspot.tw/2011/03/redmine-install-on-windows-redmind.html

開始裝吧!

1. download Ruby。我用 Ruby 1.8.7,順便把 DEVELOPMENT KIT 也抓下來,之後會用到。

2. download Redmine。我用 Redmine 2.1.5。


4. install Ruby,請勾選這兩個選項。

  • Extrace to C:\DevKit
  • cd C:\DevKit
  • ruby dk.rb init
  • ruby dk.rb install
  • gem install rdiscount --platform=ruby
6. install RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip
  • Extract to C:\RMagick-2.12.0-ImageMagick-6.5.6-8-Q8
  • cd C:\RMagick-2.12.0-ImageMagick-6.5.6-8-Q8
  • ImageMagick-6.5.6-8-Q8-windows-dll.exe (如果之前安裝過其他版本的 ImageMagick 則必須先移除)
  • gem install rmagick --local
7. download MySQL
  • Extract to C:\redmine-2.1.5
  • cd C:\redmine-2.1.5
  • gem install bundler
  • bundle install --without development test rmagick
    • gem install rdoc-data
    • rdoc-data --install
  • open MySQL 5.5 Command Line Client 到 mysql>。
    • 如果 database 裝在 D:\MySQL\MySQL Server 5.5,必須修改 Target 為 "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe" "--defaults-file=D:\MySQL\MySQL Server 5.5\my.ini" "-uroot" "-p"
    • create database redmine character set utf8;
    • create user 'redmine'@'localhost' identified by 'my_password';
    • grant all privileges on redmine.* to 'redmine'@'localhost';
  • Copy config/database.yml.example to config/database.yml and edit this file
  • production:
      adapter: mysql
      database: redmine
      host: localhost
      username: redmine
      password: my_password
    • 請注意!冒號後要有空白。
  • Copy config/configuration.yml.example to config/configuration.yml and edit this file
  • production:
      email_delivery:
        delivery_method: :smtp
        smtp_settings:
          address: "my_mail_server.mydomain.com"
          port: 25
          domain: "mydomain.com"
  • rake generate_secret_token
  • extract libmysql.dll from mysql-workbench-1.0.5-beta-win32-noinstall.zip to C:\Ruby187\bin
  • set RAILS_ENV=production
  • rake db:migrate
  • rake redmine:load_default_data
    • Select language: zh-TW
9. create a batch file to start Redmine

  • cd C:\redmine-2.1.5
  • ruby script/rails server webrick -e production
10. logon Redmine with default account and password

  • http://localhost:3000
  • account: admin
  • password: admin
11. configuration

  • 修改為中文介面
  • 調整網站設定

  • 啟用驗證


  • 設定預設專案都不公開


  • 啟用的版本控管服務


  • 為了要讓 Redmine 支援 Subversion 整合,要安裝 Subversion command line client tools。我用 TortoiseSVN


12. Backup

  • data (stored in your redmine database)
  • attachments (stored in the files directory of your Redmine install)


沒有留言:

張貼留言