HowTo Install Redmine in Apache Tomcat » History » Version 1

Henning Sprang, 2009-11-24 00:40

1 1 Henning Sprang
h1. HowTo install Redmine in Apache Tomcat
2 1 Henning Sprang
3 1 Henning Sprang
As I'm running an Apache Tomcat Server already, I wanted to run redmine in it with Jruby, so I won't have to manage a mongrel/passenger setup.
4 1 Henning Sprang
5 1 Henning Sprang
h2. Steps to achieve this
6 1 Henning Sprang
7 1 Henning Sprang
Tested with Redmine version 0.8.0 and 0.8.6 on Ubuntu Karmic.
8 1 Henning Sprang
9 1 Henning Sprang
*Attention! There is a problem on 0.8.7 not resolved yet!*
10 1 Henning Sprang
11 1 Henning Sprang
Assumption is you have a redmine running in plain ruby and it's working with "./scripts/server -e production"
12 1 Henning Sprang
If not, check the other docs first first.
13 1 Henning Sprang
14 1 Henning Sprang
I'm using a socket connection to mysql, there might be some extra steps (e.g. configuring jdbc) necessary for a mysql connection via network.
15 1 Henning Sprang
16 1 Henning Sprang
Here we go:
17 1 Henning Sprang
18 1 Henning Sprang
* aptitude install jruby1.2
19 1 Henning Sprang
* cd redmine-VERSION
20 1 Henning Sprang
* test running it manually: 
21 1 Henning Sprang
** jruby ./script/server -e production
22 1 Henning Sprang
* Install warbler gem - a tool to package rails applications as Java web application .war files:
23 1 Henning Sprang
** gem install warbler
24 1 Henning Sprang
* Run warbler:
25 1 Henning Sprang
** warble config - or if warble is not in your path like in my setup: ~/.gem/ruby/1.8/bin/warble config
26 1 Henning Sprang
* Edit the warbler config:
27 1 Henning Sprang
** vim config/warble.rb
28 1 Henning Sprang
* change line config.dirs... to be:
29 1 Henning Sprang
** config.dirs = %w(app config lib log vendor tmp extra files lang)
30 1 Henning Sprang
* run warble:
31 1 Henning Sprang
** warble - or if warble is not in your path like in my setup: ~/.gem/ruby/1.8/bin/warble
32 1 Henning Sprang
* place the redmine war into your tomcat webapps directory:
33 1 Henning Sprang
** cp redmine-VERSION.war $TOMCAT_HOME/webapps/redmine.war
34 1 Henning Sprang
35 1 Henning Sprang
36 1 Henning Sprang
h2. Links that helped me to achieve this:
37 1 Henning Sprang
38 1 Henning Sprang
* http://musingsofaprogrammingaddict.blogspot.com/2008/11/redmine-on-jruby-and-glassfish.html
39 1 Henning Sprang
* http://www.digitalsanctum.com/2007/07/24/jruby-deploying-a-rails-application-on-tomcat/