安装ruby on rails & redmine管理软件

INSTALL:


install ruby
http://ruby-lang.org
configure,make,make install


install ruby gems
http://www.rubygems.org
ruby setup.rb


修改gem源配置
参考http://ruby.taobao.org/
如果需要bundle,则修改bundle的Gemfile 源配置


装mysql lib包和include包
yum install mysql-devel


装mysql扩展
gem install mysql


下载redmine & 安装 参考
http://www.redmine.org/projects/redmine/wiki/RedmineInstall


创建mysql数据库


修改Gemfile,config
sudo bundle install --without development test rmagick postgresql sqlite 


rake generate_secret_token


RAILS_ENV=production rake db:migrate


RAILS_ENV=production rake redmine:load_default_data


mkdir tmp public/plugin_assets


写权限
chown & chmod -R 755 files log tmp public/plugin_assets
or
chmod -R 777 files log tmp public/plugin_assets


启动
#!/bin/bash
cd /opt/wwwroot/redmine
nohup ruby script/rails server webrick -e production >/dev/null 2>&1 &




需要配置nginx服务器的话
参考:http://dingchunlai.iteye.com/blog/1096794






你可能感兴趣的:(linux)