redmine install guide

please refer official wiki:

http://www.redmine.org/projects/redmine/wiki/RedmineInstall


1,check version

I use ubuntu12.04 to deploy redmine 2.3.0,  and the corresponding rails version is 3.2.13 


2,install rvm

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

source /etc/profile.d/rvm.sh


3,install ruby

rvm install 1.9.3


4,install rubygems

rvm rubygems  latest


5,modify gem repository

gem sources --remove http://rubygems.org/

gem sources -a http://ruby.taobao.org/

gem sources -l
*** CURRENT SOURCES ***

http://ruby.taobao.org
# make sure only : ruby.taobao.org


6,install rails

gem install rails -v 3.2.13


7,download redmine-2.3.3.tar.gz

tar xzvf redmine-2.3.3.tar.gz

cd redmine-2.3.3


8,install mysql

apt-get install mysql-server libmysqlclient-dev


9,Create an empty database and accompanying user

CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';


10, Database connection configuration

Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: my_password


11,Dependencies installation

apt-get install libxslt-dev libxml2-dev

gem install bundler

bundle install --without development test

(if too slow, you can modify redmine/Gemfile, change the first line with source 'http://ruby.taobao.org')


12,Session store secret generation

rake generate_secret_token


13,install libopenssl-ruby

apt-get install libopenssl-ruby


13,Database schema objects creation

RAILS_ENV=production rake db:migrate


14, Database default data set

RAILS_ENV=production rake redmine:load_default_data


15,File system permissions

mkdir -p tmp tmp/pdf public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets


16,Test the installation

ruby script/rails server webrick -e production


17,Once WEBrick has started, point your browser to http://localhost:3000/. You should now see the application welcome page


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值