vincent's Blog

一個無聊的網路雜工的紀錄!!








Redmine

### install doc
http://www.redmine.org/projects/redmine/wiki/RedmineInstall


## install ruby
yum install ruby.x86_64
Installing : compat-readline5-5.2-17.1.el6.x86_64
Installing : ruby-libs-1.8.7.352-7.el6_2.x86_64
Installing : ruby-1.8.7.352-7.el6_2.x86_64

yum install ruby-devel.x86_64
Installing : ruby-devel-1.8.7.352-7.el6_2.x86_64

yum install rubygem-gem_plugin.noarch
Installing : ruby-irb-1.8.7.352-7.el6_2.x86_64
Installing : ruby-rdoc-1.8.7.352-7.el6_2.x86_64
Installing : rubygems-1.3.7-1.el6.noarch
Installing : rubygem-rake-0.8.7-2.1.el6.noarch
Installing : rubygem-gem_plugin-0.2.3-3.el6.noarch


## install mysql

yum --enablerepo=remi install mysql mysql-server
yum --enablerepo=remi install mysql-devel.x86_64 ruby-mysql.x86_64


### download redmine package

cd /home/WEB
wget http://rubyforge.org/frs/download.php/76623/redmine-2.1.5.tar.gz
tar zxvf redmine-2.1.5.tar.gz
ln -s redmine-2.1.5 redmine



##Dependencies installation

gem install bundler
Successfully installed bundler-1.2.3
1 gem installed
Installing ri documentation for bundler-1.2.3...
Installing RDoc documentation for bundler-1.2.3...


## missing package

yum --enablerepo=remi install ruby-RMagick.x86_64
yum --enablerepo=remi install ruby-RMagick.x86_64
yum --enablerepo=remi install ImageMagick-devel.x86_64


#### Then you can install all the gems required by Redmine using the following command:

bundle install --without development test
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.3)
Using i18n (0.6.1)
Using multi_json (1.5.0)
Using activesupport (3.2.8)
Using builder (3.0.0)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using bundler (1.2.3)
Using coderay (1.0.8)
Using fastercsv (1.5.5)
Using rack-ssl (1.3.2)
Using json (1.7.5)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using jquery-rails (2.0.3)
Using mysql (2.8.1)
Using net-ldap (0.3.1)
Using ruby-openid (2.1.8)
Using rack-openid (1.3.1)
Using rails (3.2.8)
Installing rmagick (2.13.1) with native extensions
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.


### start mysqld service

service mysqld start


### Create an empty database and accompanying user?

mysql -uroot -p
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'user_password';
grant all privileges on redmine.* to 'redmine'@'localhost';



### Database connection configuration

cp database.yml.example database.yml

vi database.yml
production:
adapter: mysql
database: redmine
host: localhost
username: root
password:
encoding: utf8



###Session store secret generation
###with Redmine 2.x:

rake generate_secret_token


### Database schema objects creation

RAILS_ENV=production rake db:migrate

### Database default data set

RAILS_ENV=production rake redmine:load_default_data


### testing

ruby script/rails server webrick -e production


### Logging into the application?
Use default administrator account to log in:

http://x.x.x.x:3000 (default port 3000)

login: admin
password: admin





























0 意見

張貼留言

Categories

追蹤者

Change Language

Your Source