Install Ruby on Rails and Redmine on DS210+
I mentioned it in my manual for (trying) installing Redmine on a DS106j, the 32MB are to few.
As we got a new DS210+ with 512MB RAM and a 1 GHz CPU there was a new changes to get Redmine up and run - and it works!
Pre-requirements
- user redmine (if you like to run the service without root privileges)
- ssh aktivated
- ipkg installed
- (HTTP Service and) MySQL Server running (use the Synology DiskStation Manager to start)
- phpMyAdmin for easier access to MySQL
Installation of Ruby on Rails
As you have ipkg up and running, you can simply use the following command to install ruby:
ipkg install rubygems
Additionally (maybe it is not necessary) install zlib:
ipkg install zlib
Now install Rails in Version 2.3.5 to be fit most Redmine pre-requirements (this step will take ca. 30 Minutes even on the shiny new DS210+ so imagine that on the DS106j):
gem install rails -v 2.3.5
Install Redmine
Use phpMyAdmin to create a database redmine and optionally a user redmine with the rights to access it.
install ruby-mysql
wget http://github.com/downloads/tmtm/ruby-mysql/ruby-mysql-2.9.3-beta.tar.gz tar -xzvf ruby-mysql-2.9.3-beta.tar.gz cd ruby-mysql-2.9.2-beta ruby setup.rb
create a folder in /volume1 for the redmine service:
cd /volume1 mkdir rubyapps cd rubyapps
download redmin (We have used the 0.9.5 because we had some strange errors with the newest 1.0.1 redmine):
wget http://rubyforge.org/frs/download.php/71421/redmine-0.9.5.tar.gz
extract it:
tar -xzvf redmine-0.9.5.tar.gz
create a symbolic link to the folder (for easier access later):
ln -s redmine-0.9.5 redmine
change the rights of the folder to the user redmine:
chown redmine:1000 redmine-0.9.5 -R
login as user redmine:
su redmine
change to folder config in redmine and create database.yml
cd /volume1/rubyapps/redmine/config cp database.yml.example database.yml
edit the database.yml
nano database.yml
change:
production: adapter: mysql database: redmine <= created in MySQL host: localhost username: redmine <= created in MySQL password: my_password <= set for the user redmine n MySQL