/capistrano_demo

Capistrano demonstration for KC Ruby

Primary LanguageRuby

Capistrano demo

Sample application for my presentation on Capistrano at KC Ruby, March, 2015.

  • Aaron Sumner
  • @ruralocity (Twitter, GitHub)

Setup

Server-side

  • see bootstrap.sh for basic server configuration

Where I cheated:

  • using vagrant user for deploys
  • using sqlite3 in production
  • secrets are in repo (but part of server provisioning)

App-side

  • refer to Gemfile for dependencies
  • bundle exec cap install
  • customize Capfile, config/deploy.rb, and config/deploy/.rb as needed

Deploying

  • cap <env> deploy

Rollback

  • cap <env> deploy:rollback

Custom tasks

  • see lib/capistrano/tasks/uptime.rake

Resources

Alternatives