Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Capistrano recipes for Redmine deployment
branch: master

This branch is even with kolo:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Capistrano recipes for Redmine deployment. Setup is not fully automated, though I try to minimize manual steps.

Current Redmine version is 1.3.0.


  1. This script tuned for multistaging deployment. Two stages defined: staging and production. Default stage is staging. You can change this in config/deploy.rb#2.

  2. Redmine requires Ruby 1.8.7. I decided to use latest REE release. Install it on server using RVM. Also gemset named redmine should be created. You can change these settings in config/deploy.rb#15. Another requirement is using rubygems 1.6.2. This can be done by using rvm rubygems 1.6.2 in previously created gemset.

  3. Describe stages configuration. Use config/deploy/stage.rb.example as example. Stage description should be placed to config/deploy directory.

  4. Configuration files will be automatically uploaded and symlinked during deployment process. Three configuration files should be created. First describes database connection settings (confing/database.yml), second - redmine configuration (config/configuration.yml), third - thin options (config/thin.yml). Add stage name extension to each file, so database.yml should be named database.yml.production for production environment.

  5. bundle exec cap deploy:setup

  6. bundle exec cap deploy

  7. ...

  8. Profit!


  1. New version of Redmine may require new verion of gems it depends on, so first step should be - bundle exec cap setup:gems

  2. bundle exec cap deploy


Ask question, submit pull request, enjoy!


Dmitry Maksimov (

Something went wrong with that request. Please try again.