redmine 从production工作模式切换到development模式
时间:2014-01-21 09:52:31
收藏:0
阅读:463
有时候为了找到redmine或者plugin的错误,需要得到development.log文件。
按照下面的步骤转换:
在config/environment.rb文件第一行,修改为
ENV[‘RAILS_ENV‘] ||= ‘development‘
database.yml文件中,development配置和production一样
production: adapter: mysql2 database: redmine host: localhost username: redmine password: "123456" encoding: utf8 development: adapter: mysql2 database: redmine host: localhost username: root password: "123456" encoding: utf8
然后重新启动redmine.
原文:http://blog.csdn.net/csfreebird/article/details/18235031
评论(0)