Table of contents
UPDATE: A TurnKey Redmine appliance was made available in the 2009.10 release thanks to these notes.
These are the steps I followed to get Redmine running on the "TurnkeyLinux Rails Appliance".
# CD to the directory containing the `railsapp`
cd /var/www/
# Stop the running mongrel cluster so we can fiddle the `railsapp`
/etc/init.d/mongrel_cluster stop
# Shuffle already installed app so we can replace it
mv railsapp{,.orig}
# Update APT sources and install required packages
apt-get update
apt-get install subversion libsqlite3-ruby libdbi-ruby libdbd-sqlite3-ruby libxml-ruby rake
# Check out the 0.8 version of redmine into the `railsapp`
# (I used r2743 - YMMV)
svn co http://redmine.rubyforge.org/svn/branches/0.8-stable/ railsapp
# Copy over the mongrel cluster config
cp railsapp.orig/config/mongrel_cluster.yml railsapp/config
# Make PID temp directory so that Mongrel can monitor instances
mkdir railsapp/tmp/pids
# Modify your database configuration
cat <<EOF >config/database.yml
production:
adapter: sqlite3
dbfile: db/redmine.db
EOF
# Make sure you have rails 2.1.2 installed
gem install --no-rdoc --no-ri --verbose -v=2.1.2 rails
# Perform initial database configuration
cd railsapp; rake db:migrate RAILS_ENV="production"; cd ..
# Optionally (recommended) load default data
cd railsapp; rake redmine:load_default_data RAILS_ENV="production"; cd ..
# Give the apache user access to our stuff
chown -R www-data:www-data railsapp
##########
# Plugins
#
# These are optional of course. Uncomment the lines to add them.
# Make sure git is installed
# apt-get install git-core
# Simple CI - Reads an RSS feed and colors entries based on regex
# svn co svn://rubyforge.org/var/svn/redmine/plugins/simple_ci vendor/plugins/simple_ci
# Graphs - see the progression over time of issues
# git clone git://github.com/bradbeattie/redmine...phs-plugin.git vendor/plugins/redmine_graphs
# Vote - vote on issues
# Note that I used a forked version of this project; if the forker doesn't pull changes
# you may need to customize this git URL to point it to the original project
# git clone git://github.com/jimmyz/redmine_vote.git vendor/plugins/redmine_vote
# GroupIssues - group issues by status/effort/etc.
# git clone git://github.com/Ubik/redmine_issues_group.git vendor/plugins/issues_group
# Migrate all stuff for plugins
#rake db:migrate_plugins RAILS_ENV="production"
# End of plugins stuff
#######################
# Start the mongrel cluster running the new `railsapp`
/etc/init.d/mongrel_cluster start

Comments