标签:class blog http tar com get
转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://live-free-or-die-hard.blogbus.com/logs/14666910.html
在译言网翻译了一篇文章,关于如何在 InstantRails 环境下,安装使用 redMine。
实践下来发现些问题,在此重新整理一下。
InstantRails 的安装不再重复,参见以前的文章。
关于 redMine 的安装,要注意的是,程序会用到三个数据库,分别是 PRODUCTION,DEVELOPMENT和TEST。
redMine的安装
production:
adapter: mysql
database: redmine
host:
localhost
username: root
password:
encoding:
utf8
development:
adapter: mysql
database:
redmine_development
host: localhost
username:
root
password:
encoding: utf8
test:
adapter:
mysql
database: redmine_test
host: localhost
username:
root
password:
encoding: utf8
create database redmine character set utf8;
grant all
privileges on redmine.* to redmine@localhost identified by ‘redmine‘;
create database redmine_development character set utf8;
grant
all privileges on redmine_development.* to redmine_development@localhost
identified by redmine_development‘;
create database redmine_test character set utf8;
grant
all privileges on redmine_test.* to redmine_test@localhost identified by
‘redmine_test‘;
> 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"
至此,安装完毕。
还有两点注意事项:
★ yaml 文件对格式要求比较严,要体现层次
★ rake load_default_data 命令是可选的,但是推荐使用。
在 InstantRails 环境下,安装使用 redMine,布布扣,bubuko.com
在 InstantRails 环境下,安装使用 redMine
标签:class blog http tar com get
原文地址:http://www.cnblogs.com/edwardsun/p/3781296.html