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 | |||
| 3 | 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 | |||
| 5 | h2. Steps to achieve this | ||
| 6 | |||
| 7 | Tested with Redmine version 0.8.0 and 0.8.6 on Ubuntu Karmic. | ||
| 8 | |||
| 9 | *Attention! There is a problem on 0.8.7 not resolved yet!* | ||
| 10 | |||
| 11 | Assumption is you have a redmine running in plain ruby and it's working with "./scripts/server -e production" | ||
| 12 | If not, check the other docs first first. | ||
| 13 | |||
| 14 | 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 | |||
| 16 | Here we go: | ||
| 17 | |||
| 18 | * aptitude install jruby1.2 | ||
| 19 | * cd redmine-VERSION | ||
| 20 | * test running it manually: | ||
| 21 | ** jruby ./script/server -e production | ||
| 22 | * Install warbler gem - a tool to package rails applications as Java web application .war files: | ||
| 23 | ** gem install warbler | ||
| 24 | * Run warbler: | ||
| 25 | ** warble config - or if warble is not in your path like in my setup: ~/.gem/ruby/1.8/bin/warble config | ||
| 26 | * Edit the warbler config: | ||
| 27 | ** vim config/warble.rb | ||
| 28 | * change line config.dirs... to be: | ||
| 29 | ** config.dirs = %w(app config lib log vendor tmp extra files lang) | ||
| 30 | * run warble: | ||
| 31 | ** warble - or if warble is not in your path like in my setup: ~/.gem/ruby/1.8/bin/warble | ||
| 32 | * place the redmine war into your tomcat webapps directory: | ||
| 33 | ** cp redmine-VERSION.war $TOMCAT_HOME/webapps/redmine.war | ||
| 34 | |||
| 35 | |||
| 36 | h2. Links that helped me to achieve this: | ||
| 37 | |||
| 38 | * http://musingsofaprogrammingaddict.blogspot.com/2008/11/redmine-on-jruby-and-glassfish.html | ||
| 39 | * http://www.digitalsanctum.com/2007/07/24/jruby-deploying-a-rails-application-on-tomcat/ |