yum -y install ruby
yum install rubygems
gem install heroku gem install rack -v=1.0.1 gem install ruby-mysql
vim /redmin/config/database.yml
修改自定义附件存放目录:vim /usr/share/redmine/app/models/attachment.rb ;
找到
@@storage_path = ENV['RAILS_VAR'] ? File.join(ENV['RAILS_VAR'], 'files') : "#{RAILS_ROOT}/files"
将其注释掉(在前面加#),然后紧随其后补上:
@@storage_path = "/home/darkofday/redmineAttachFile"
可参考文章:自定义redmine的附件存放目录 >>>https://www.douban.com/note/161840494/
启动 ruby /data/apps/redmine/script/server -e production -p 4000 -d