понедельник, 25 апреля 2011 г.

Redmine 1.1.2 devel deploy ready WAR file

If you want to deploy Redmine to servlet container such as Tomcat, then you have two ways:
- download redmine source codes, read a lot of instructions, and spent about day or two to resolve all conflicts;
- or you just download my war-file, edit few settings, and you're done in 15 minutes.

Here's the file.

In the war-file you should find initial table scheme and run it on your database.
redmine-VERSION.war\WEB-INF\config\redmine_default_data.sql

Sorry guys, in this file it is on Russian, but I can make in English one, if you request me.

After that you should correct
redmine-VERSION.war\WEB-INF\config\database.yml

And the last step but not least is security. You should generate your own unique secret key.
redmine-VERSION.war\WEB-INF\config\initializers\session_store.rb

# This file was generated by 'rake config/initializers/session_store.rb',
# and should not be made visible to public.
# If you have a load-balancing Redmine cluster, you will need to use the
# same version of this file on each machine. And be sure to restart your
# server when you modify this file.

# Your secret key for verifying cookie session data integrity. If you
# change this key, all old sessions will become invalid! Make sure the
# secret is at least 30 characters and all random, no regular words or
# you'll be exposed to dictionary attacks.
ActionController::Base.session = {
:key => '_redmine_session',
#
# Uncomment and edit the :session_path below if are hosting your Redmine
# at a suburi and don't want the top level path to access the cookies
#
# See: http://www.redmine.org/issues/3968
#
# :session_path => '/url_path_to/your/redmine/',
:secret => '116315a0b6f594fa95bf163fce376b36de6bc53936327c4577f3f64f8e4c15af60eda37e4ff9562d'
}

You may use this online hex generator, for example (just remove the spaces).

And that's all, you're ready to deploy.
I've tested this file on the local machine and on Cloudbees.com service.
It works just fine on both.

Комментариев нет: