Redmine是用Ruby开发的基于web的项目管理软件,是用ROR框架开发的一套跨平台项目管理系统,据说是源于Basecamp的ror版而来,支持多种数据库,有不少自己独特的功能,例如提供wiki、新闻台等,还可以集成其他版本管理系统和BUG跟踪系统,例如Perforce、SVN、CVS、TD等等。这种 Web 形式的项目管理系统通过“项目(Project)”的形式把成员、任务(问题)、文档、讨论以及各种形式的资源组织在一起,大家参与更新任务、文档等内容来推动项目的进度,同时系统利用时间线索和各种动态的报表形式来自动给成员汇报项目进度。
一、创建数据库
create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'redmine'; grant all privileges on redmine.* to 'redmine'@'localhost'; flush privileges;
二、编辑database.yml
production: adapter: mysql2 database: redmine host: localhost username: redmine password: "redmine" encoding: utf8
三、编辑configuration.yml
email_delivery: delivery_method: :smtp smtp_settings: openssl_verify_mode: false enable_starttls_auto: false address: "mail.xxx.com" port: 25 #domain: "xxx.com" #authentication: :login #user_name: "[email protected]" #password: "redmine"
四、创建sessin存储脚本会产生config/initializers/secret_token.rb
rake generate_secret_token
五、数据初始化
RAILS_ENV=production rake db:migrate
六、设置默认语言为zh
RAILS_ENV=production rake redmine:load_default_data
七、升级插件
rake redmine:plugins:migrate RAILS_ENV=production
八、启动服务
ruby script/rails server webrick -p 80 -e production