




























一直想玩一下redmine,现在有台空的机器,就去玩一下了,参考了网上的文章,很快地配置好了,当然中间是有点小问题需要自己去处理,如数据库的配置,apache DNS,虚拟服务的配置。
参考文章:配合InstantRails使用redMine
【译者注】 日本人行文比较啰嗦,各位多担待吧~
提到基于Web的项目管理工具,比较有名的是trac(http://trac.edgewall.org/)。不过我用的是Ruby on Rails版的trac ------ Collaboa(http://collaboa.org/)。(没有在真正用到实际的项目中,只是由于个人兴趣在尝试)。
trac看起来有点难(因为不懂Python)。Collaboa的话,借助Ruby on Rails这个框架,可以简单地追加些机能,例如Wiki机能和日历机能。
不过,在使用Collaboa的时候,因为Subversion上Ruby的绑定在Windows环境下不好用(现在好用了吗?),Windows环境下的使用受到限制。
因此Collaboa现在暂时不怎么用了。最近在研究用Ruby on Rails开发的、同样是项目管理工具的redMine(http://www.redmine.org/)。
于是参考了http://ruby.g.hatena.ne.jp/garyo/20070423研究了下redMine到底是怎么一回事,在InstantRails环境下运行了redMine。
** Starting Mongrel listening at 0.0.0.0:3001
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready.INT => stop (no restart).
** Mongrel available at 0.0.0.0:3001
** Use CTRL-C to stop.
在浏览器的地址栏输入http://localhost:3001/,确认例子程序能否运行。
接下来,修改MySQL的配置。从InstantRails的I→Configure→Database (via PhpMyAdmin)启动。
打开SQL窗口,输入以下语句。
create database redmine character set utf8;
grant all privileges on redmine.* to redmine@localhost identified by 'redmine';
create database development character set utf8;
grant all privileges on development.* to redmine@localhost identified by 'redmine';
create database test character set utf8;
grant all privileges on test.* to redmine@localhost identified by 'redmine';
从InstantRails的I→Rails Applications→Open Ruby Console Window启动,执行以下命令。马上数据库表就自动生成了。
> cd redmine-0.5.0
> rake db:migrate RAILS_ENV="production"
> rake load_default_data RAILS_ENV="production"
> rake db:migrate RAILS_ENV="development"
> rake load_default_data RAILS_ENV="development"
> rake db:migrate RAILS_ENV="test"
> rake load_default_data RAILS_ENV="test"
至此,安装完毕。
redMine的启动
> ruby script/server -e production
但是如果在script文件夹下执行,就会有如下错误发生。
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000/
=> Call with -d to detach
=> Ctrl-C to shutdown server
!!! Path to log file not valid: log/mongrel.log
mongrel::start reported an error. Use mongrel_rails mongrel::start -h to get help.
Exiting
在浏览器输入http://localhost:3000/,redMine就可以使用了。
在windows server 2000/2003下创建DNS服务器后,然后在
InstanRails下选择“I”——“Configure”——"Apache",
添加虚拟服务器配置:
<VirtualHost 192.168.0.X>
ServerName www.workstation.com
ProxyPass / http://www.workstation.com:3000/
ProxyPassReverse / http://www.workstation.com:3000
</VirtualHost>
使用感想:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。