redmine 在 centos 下的安装过程总结帖(下)
上一篇 /
下一篇 2012-03-06 09:56:29
/ 个人分类:配置管理
三、安装过程中出现的问题及解决方法
3.1 enviroment.rb的修改方法
rake db:migrate RAILS_ENV="development"
rake load_default_data RAILS_ENV="development"
if you see error like:
Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RA
ILS_GEM_VERSION setting in config/environment.rb for the Rails version you do ha
ve installed, or comment out RAILS_GEM_VERSION to use the latest version install
ed.
you need to modify enviroment.rb as
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION
if you see error like:
"A key is required to write a cookie containing the session data. Use config.action_controller.session = {:key => "_myapp_session", :secret => "some secret phrase"} in config/environment.rb"
please do as the suggestion, add following config to enviroment.rb file:
 config.action_controller.session = { :key => "_redmine_session", :secret => "aa3be4f950045ce76451b8197bf06b6d" }
3.2 服务器运行慢的解决方法
替换其自带的服务器webrick为mongrel,方法:
# gem install mongrel //使用mongrel 作为服务器
更改redmine/config/environments目录下production.rb文件,将
Config.cache_classes = false改为:
Config.cache_classes = true
运行:
# su -redmine -c "ruby script/server mongrel -e production" //启动服务器
3.3 关闭redmine服务
#ps -ef
# kill pid(redmine)
四、邮件配置
# http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer
production:
delivery_method: :smtp
smtp_settings:
address: smtp.XX.XX
port: 25
domain: XX.com
authentication: :login
user_name: XXXX@XX.XX
password: XXXXX //纯数字的情况要用单引号引起来
development:
delivery_method: :smtp
smtp_settings:
address: smtp.XX.XX
port: 25
domain: XX.XX
authentication: :login
user_name: XX@XX.XX
password: XXXXX
收藏
举报
TAG: