Windows基於Redmine部署

來源:互聯網
上載者:User
基於windows部署Redmine專案管理系統

上次寫到一篇《基於Centos部署Redmine專案管理系統
》的文章,不過感覺維護起來不怎麼方便。因為我自己的實驗機器不是linux機構的,所以只能用於虛擬機器之上。這樣我覺的容易導致資料丟失,畢竟我經常都需要恢複虛擬機器的快照。於是我將其遷移到windows平台之上運行。以下是操作的方法:

Redmine配置方法

1.下載InstantRails並解壓到任意非中文目錄:
可以把 InstantRails 想象成要在本機配置php環境一體包
比如像WAMP、XAMPP等,InstantRails也相當於在Ruby世界裡的一體包,裡面已經含有有mysql,phpmyadmin、Apache等等一系列組件,安裝之。
官方地址:http://rubyforge.org/frs/?group_id=904

2.下載redmine軟體包:

由於InstantRails的rake版本問題,redmine只能用0.8.x或以下版本。

官方地址:http://rubyforge.org/frs/?group_id=1850

3.解壓redmine到“InstantRails” 目錄的 “rails_apps”內;

4.將路徑為“InstantRails/rails_apps/redmine/config"下的“database.yml.example”重新命名為“database.yml”

5.進入phpMyAdmin下,建立資料庫(用sql命令方式):

create database redmine character set utf8;
進入phpmyadmin下有兩種方式:

  1. 瀏覽器輸入http://127.0.0.1/mysql/
  2. InstantRails介面(就是剛才點擊InstantRails.exe後的程式介面)的I→Configure→Database (via
    PhpMyAdmin)”

6.redmine初始化資料
點擊
InstantRails介面(就是剛才點擊InstantRails.exe後的程式介面)的InstantRails→Rails
Applications→Open Ruby Console Window欄目,然後會跳出dos視窗。

cd redmine
rake config/initializers/session_store.rb RAILS_ENV=production
rake db:migrate RAILS_ENV="production"
rake load_default_data RAILS_ENV="production"

7.啟動服務
“Start with Mongrel”(啟動redmine這個應用程式)。跳出一個dos視窗,不要關閉。現在就可以瀏覽配置好的
RedMine了。

Redmine附錄補充

1.運行出現"C++ library runtime error R6034"


解決方案:
http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=zh-cn

2.每次啟動程式,第一次運行網頁瀏覽均提示"mysql_stmt_row_tell"錯誤。


解決方案:
將"Instant Rails/mysql/bin/libmySQL.dll" 複製到 "Instant
Rails/ruby/bin/libmySQL.dll"

3.基於windows部署Rmagick方法:
a.到http://rubyforge.org/frs/?group_id=12&release_id=8170
,下載
RMagick-1.14.1_IM-6.3.0-7-Q8.zip
b.解壓後在目錄執行gem install
rmagick-1.14.1-win32.gem
c.最後,雙擊ImageMagick-6.3.0-7-Q8-windows-dll.exe安裝ImageMagick
d.將ImageMagick的安裝目錄加進環境變數path,如果有的話就不用了
e.最後一步,將附件中的type-windows.xml
拷貝進ImageMagick安裝目錄下的config目錄,比如
D:/ImageMagick-6.3.0-Q8/config,修改type.xml,原來是:

<typemap>
<include file="type-ghostscript.xml" />
</typemap>

修改為:

<typemap>
<include file="type-windows.xml" />
<!-- <include file="type-ghostscript.xml" /> -->
</typemap>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.