windows下使用InstantRails-2.0的redmine1.0.0安装日志

1、下载InstantRails  http://rubyforge.org/frs/download.php/29867/InstantRails-2.0-win.zip
2、解压后运行InstantRails.exe即可启动,无需另行安装,我在D盘根目录
3、环境变量path中加入 D:\InstantRails-2.0-win\ruby\bin;
4、更新rails请见我的另一帖子http://llyzq.iteye.com/admin/blogs/725209  
5、下载 http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
  复制到 D:\InstantRails-2.0-win\ruby\bin目录下
6、下载redmine,解压后,放到D:\InstantRails-2.0-win\rails_apps目录下
7、运行D:\InstantRails-2.0-win\InstantRails.exe,会提示你更换路径,同时mysql可能一直处于pending状态
   点击MySql按钮,kill之后再启动就好了
8、选择最左边的带有I图标的按钮,选择configure->database,会在IE中打开MYSQL的管理界面
   点击上方的SQL链接,依次执行SQL
   create database redmine character set utf8;
   create database redmine_development character set utf8;
   create database redmine_productiont character set utf8;
   create user 'redmine'@'localhost' identified by 'redmine';
  create user 'redmine'@'localhost' identified by 'redmine';
  GRANT ALL ON redmine_development.* TO 'redmine'@'localhost' identified by 'redmine';
  GRANT ALL ON redmine_productiont.* TO 'redmine'@'localhost' identified by 'redmine';


9、进入D:\InstantRails-2.0-win\rails_apps\redmine\config,将database.yml.example文件复制一份改为database.yml,修改全部的用户名密码为redmine
10、进入D:\InstantRails-2.0-win\rails_apps\redmine\,执行

     rake config/initializers/session_store.rb

     rake db:migrate RAILS_ENV="production"
11、执行rake load_default_data RAILS_ENV="production" 
  会提示Select language: bg, bs, ca, cs, da, de, el, en, en-GB, es, eu, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mn, nl,no, pl, pt, pt-BR, ro, ru, sk, sl, sr, sr-CY, sv, th, tr, uk, vi, zh, zh-TW [en] zh
  输入zh选择中文
12、选择最左边的带有I图标的按钮,选择Rails Applications->Manage Rails Applications,在打开的窗口中选择redmine后点击configure start model,在runetimemodel中将development改为production,点击OK。

再选择start with mongel启动服务器

13、通过地址http://localhost:3000/访问redmine。

初次访问可能出现的不是redmine,而rails的欢迎页面,请等待一会再访问。

 

管理员用户admin密码admin。

 

redmine中文帮忙手册 http://redmine.ossxp.com/redmine/projects/redmine/wiki

你可能感兴趣的:(mysql,windows,Ruby,Rails,rack)