一般性的配置更改:
在config/enviroment.rb文件中添加ENV['RAILS_ENV'] ||= 'development'或ENV['RAILS_ENV'] ||= 'production',并重启服务器。
不过如果你的Redmine运行环境是Phusion passenger(mod rails),那么上面的方法不会起作用,需要修改web服务器的配置:
1.对于Apache2
在Redmine vhost配置中添加如下指令:
RailsEnv development
2.对于nginx
在redmine server配置中添加如下指令:
rack_env development
然后重启apache或nginx。
检查your_redmine_path/log/目录下文件的更新情况可以确认当前的工作模式。
by iefreer