Redmine on windows安裝

來源:互聯網
上載者:User

參考網址:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
Redmine是用Ruby開發的基於web的專案管理軟體,是用ROR架構開發的一套跨平台專案管理系統,據說是源於Basecamp的ror版而來,支援多種資料庫,有不少自己獨特的功能,例如提供wiki、新聞台等,還可以整合其他版本管理系統和BUG跟蹤系統,例如SVN、CVS、TD等等。這種 Web 形式的專案管理系統通過“項目(Project)”的形式把成員、任務(問題)、文檔、討論以及各種形式的資源群組織在一起,大家參與更新任務、文檔等內容來推動項目的進度,同時系統利用時間軸索和各種動態報表形式來自動給成員彙報項目進度。

一直對Redmine心懷崇敬,所以就閑來無事試一試。環境如下:

為了不在配環境上浪費時間,我找到了RailsInstaller,Ruby和Rails都整合集中。

網址是:http://railsinstaller.org/ 使用railsinstaller-2.1.0

Ruby 1.9.3-p125
Rails 3.2
Bundler 1.0.18
Git 1.7.6
Sqlite 3.7.3
TinyTDS 0.4.5
SQL Server support 3.3.3
MySQL 5.5

1.安裝RailsInstaller
2.安裝bundler,似乎安裝了1就不必裝這個了,以防萬一又裝了一下

gem install bundler
bundle install --without development test

3.安裝rmagick

需要安裝imagemagick,選擇安裝環境變數和C/C++標頭檔,:http://www.imagemagick.org/script/binary-releases.php#windows

set CPATH=C:\Program Files\ImageMagick-6.7.7-Q16\includeset LIBRARY_PATH=C:\Program Files\ImageMagick-6.7.7-Q16\lib

gem install rmagick or bundle install --without=development test, etc.

參考http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows

4.建立mysql資料庫

create database redmine character set utf8;create user 'redmine'@'localhost' identified by 'my_password';grant all privileges on redmine.* to 'redmine'@'localhost';

5. 複製config/database.yml.example到config/database.yml 修改 "production" 配置:

production:  adapter: mysql2  database: redmine  host: localhost  username: redmine  password: my_password

6.建立session密鑰

rake generate_secret_token

7.建立資料庫結構

RAILS_ENV=production rake db:migrate

到這裡卡主了。。。

找到問題是在windows下需要寫成

rake db:migrate RAILS_ENV="production" 

提示錯誤 couldn't parse YAML at line 18 column 2,這是因為修改database.yml的時候需要在每個冒號後需要加空格。

重新運行建立資料庫,提示Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the
client library is 5.5.20.

參考http://stackoverflow.com/questions/8740868/mysql2-gem-compiled-for-wrong-mysql-client-library可以解決

然後繼續報錯Can't connect to MySQL server on 'localhost' (10061)

是因為使用ipv6導致localhost沒指向到127.0.0.1,解決辦法參考http://stackoverflow.com/questions/10792862/rails-development-cant-connect-to-mysql-server-on-localhost-10061

8.資料庫載入預設資料

rake redmine:load_default_data RAILS_ENV="production"

選擇語言的時候選zh

9.運行WEBrick web server測試安裝

ruby script/rails server webrick -e production

至此安裝完成 使用就以後再說

示範地址為http://demo.redmine.org/
初步使用,具有許可權控制、多專案管理、提交bug、建立及分配任務、任務行事曆以及甘特圖。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.