こんな感じでサクっと。
# aptitude install rake rubygems # adduser --system --group --shell /bin/bash redmine # mysql -uroot -p mysql> create database redmine charset utf8; mysql> grant all on redmine.* to redmine@localhost identified by 'xxxxxxxx'; # su - redmine $ tar xpvfz redmine-0.8.5.tar.gz $ ln -s redmine-0.8.5 redmine $ cd redmine $ cp config/database.yml.example config/database.yml $ vi config/database.yml production: adapter: mysql database: redmine host: localhost username: redmine password: xxxxxxxx encoding: utf8 $ rake db:migrate RAILS_ENV=production $ rake load_default_data RAILS_ENV=production
テスト
$ script/server -e production
Passenger で動かす
# aptitude install libapache2-mod-passenger # vi /etc/apache2/sites-available/redmine <VirtualHost *:80> ServerName redmine.tmtm.org LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %T %v" full CustomLog /var/log/apache2/redmine-access.log full ErrorLog /var/log/apache2/redmine-error.log DocumentRoot /home/redmine/redmine/public </VirtualHost> # a2ensite redmine # /etc/init.d/apache2 reload