Windows 7 32bit环境下Redmine+SVN的配置实用

Windows 7 32bit环境下Redmine+SVN的配置使用

系统环境:

参数

版本

下载地址

OS

Win 7 32 bit

-

Redmine

Redmine-2.5.2

http://www.redmine.org/projects/redmine/wiki/Download

SVN

VisualSVN-Server-2.6.5

http://www.visualsvn.com/server/download/

Ruby

Rubyinstaller-2.0.0-p481

http://rubyinstaller.org/downloads/

Dev Kit

DevKit-mingw64-32-4.7.2-2013022401151.sfx

http://rubyinstaller.org/downloads/

MySQL

Mysql-installer-community-5.6.13.1

http://www.mysql.com/downloads/

 

配置使用步骤:

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

打开RubyStart 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.dllRuby/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

打开RubyStart Command Prompt with Ruby命令窗口,执行以下命令:

gem install mysql2 -- ‘--with-mysql-dir=” C:\Program Files\MySQL\MySQL 5.6”’

7.安装bundler及迁移数据到MySQL

打开RubyStart 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.开启各项服务功能

打开RubyStart Command Prompt with Ruby命令窗口,切换根目录到E:\ Redmine-2.5.2

开启Redmine服务器:ruby script\rails server webrick –e production

默认访问地址:http://localhost:3000。默认管理员\密码:admin\admin

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值