Windows 7 32bit环境下Redmine+SVN的配置使用
系统环境:
参数 |
版本 |
下载地址 |
OS |
Win 7 32 bit |
- |
Redmine |
Redmine-2.5.2 |
|
SVN |
VisualSVN-Server-2.6.5 |
|
Ruby |
Rubyinstaller-2.0.0-p481 |
|
Dev Kit |
DevKit-mingw64-32-4.7.2-2013022401151.sfx |
|
MySQL |
Mysql-installer-community-5.6.13.1 |
配置使用步骤:
1.解压Redmine
解压下载的Redmine-2.5.2。本文安装路径为:E:\ Redmine-2.5.2。
2.安装Rubyinstaller
双击rubyinstaller-2.0.0-p481.exe,默认安装Ruby运行环境。本文安装路径为C:\Ruby200。
3.安装Dev Kit
双击DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe,默认解压Dev Kit。本文安装路径为E:\DevKit。
打开Ruby的Start Command Prompt with Ruby命令窗口,切换根目录到E:\DevKit,执行以下命令:
ruby dk.rb init
ruby db.rb install
4.安装MySQL
双击mysql-installer-community-5.6.13.1.msi,默认安装MySQL。本文安装路径为C:\Program Files\MySQL\MySQL 5.6。
创建数据库及用户:
Create database redmine character set utf8;
Create database redmine_development character set utf8;
Create database redmine_test character set utf8;
拷贝C:\Program Files\MySQL\MySQL 5.6\lib\libmysql.dll到Ruby/bin文件夹下。
5.修改config/database.yml文件
production:
adapter: mysql2
database: redmine
host: localhost
username: root
password: root
encoding: utf8
development:
adapter: mysql2
database: redmine_development
host: localhost
username: root
password: root
encoding: utf8
test:
adapter: mysql2
database: redmine_test
host: localhost
username: root
password: root
encoding: utf8
6.安装mysql2
打开Ruby的Start Command Prompt with Ruby命令窗口,执行以下命令:
gem install mysql2 -- ‘--with-mysql-dir=” C:\Program Files\MySQL\MySQL 5.6”’
7.安装bundler及迁移数据到MySQL
打开Ruby的Start Command Prompt with Ruby命令窗口,执行以下命令:
gem install bundler
切换根目录到E:\ Redmine-2.5.2,执行以下命令:
bundle install –without development test rmagick
rake generate_secret_token
set RAILS_ENV=production
rake db:migrate
set REDMINE_LANG=zh
rake redmine:load_default_data
8.安装Visual SVN
双击VisualSVN-Server-2.6.5.msi,默认安装VisualSVN。本文安装路径为:C:\Program Files\VisualSVN Server。
9.修改config/configuration.yml
修改以下内容:
scm_subversion_command: C:\Program Files\VisualSVN Server\bin\svn.exe
10.开启各项服务功能
打开Ruby的Start Command Prompt with Ruby命令窗口,切换根目录到E:\ Redmine-2.5.2。
开启Redmine服务器:ruby script\rails server webrick –e production。
默认访问地址:http://localhost:3000。默认管理员\密码:admin\admin。