Capistrano Deployment

V2Master - V2Deployment

Introduction

This page describes how Capistrano is used for:

  1. The V2 deployment git tree used to store and manage V2 and MAPS deployment configurations
  2. Capistrano customization
  3. VM setup and provisioning
  4. Application deployment
  5. Example deployments

V2 Deployment Git Tree

Capistrano Customization

Capistrano Custom Command Line Parameters

Capistrano Custom Tasks

VM Setup and Provisioning

Application Deployment

Specific Instance Deployment

Generic Instance Deployment

Example Deployments

Example: Specific Development Instance

  1. Install git tree by hand
  2. Using webbrick as web server
  3. Capistrano to install site/instance specific files
  4. Can optionally run bundle and rake tasks

Example: Specific Production Instance

  1. Install git tree by hand
  2. Using pre-configured APache virtual host as web server
  3. Capistrano to install everything
    1. Setup of target environment: Mix of hand and automated steps
    2. Local git checkout and installation on server
    3. RRun bindle and rake tasks

Example: Generic Production Instance

  1. Creating VM on virtual host
  2. Provisioning VM on virtual host
    1. Including creation of Apache virtual host
  3. Application installation

Note that DMS (re-)configuration is not included, this must be prepared separately, typically using Puppet. See:

Copyright 2008-2014, SoftXS GmbH, Switzerland