redmine数据库配置文件里有三种环境: production, development, test
redmine/bin/rails server -b 0.0.0.0 // 默认development环境
ruby redmine/bin/rails server -b 0.0.0.0 webrick -e production -d // -e指定环境 -d后台运行
redmine/bin/rails server -h // 查看帮助
修改gem源
gem sources -r https://.../ // 删除源
gem sources -a https://ruby.taobao.org //增加源
gem sources -l // 列出现有源
# bundle config mirror.https://rubygems.org https://ruby.taobao.org
1.安装ruby
./configure --prefix=/usr/local/ruby --with-openssl-dir=/usr/local/ssl
vim /etc/profile
export PATH=$PATH:/usr/local/ruby/bin
source /etc/profile
2.安装rubygems
# ruby setup.rb
3.安装rail
# gem install rails -v=2.3.5
# gem install rake
4.安装redmine
# cp -rf redmine..- /usr/local/redmine
5.Setting up Rails
# cd /usr/local/redmine
# gem install bundler
# bundle install
这里要安装很多模块
6.设置redmine数据库环境
# rake db:migrate RAILS_ENV="production"
# rake generate_secret_token
redmine 启动命令 // ./bin/rails server -h 查看帮助
ruby ./bin/rails server -b 0.0.0.0 webrick -e production -d
数据库
mysql> create user 'redmine'@'localhost' identified by 'redmine'; //创建用户
mysql> create database redmine character set utf8; //创建表
mysql> grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'redmine'; //授权
mysql> flush privileges; //刷新