/redmine-deploy

Capistrano recipes for Redmine deployment

Primary LanguageRuby

redmine-deploy

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

Current Redmine version is 1.3.0.

Usage

  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!

Updating

  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

Contribution

Ask question, submit pull request, enjoy!

Authors

Dmitry Maksimov (dmtmax@gmail.com)