Posted about 3 years ago. Visible to the public.

Deployment basics

  • Understand what Capistrano does
  • Understand the differences between Capistrano and rake
  • Understand multi-stage deployment
  • Understand the differences between Rails environments and Capistrano deployment targets
  • Understand "roles" in Capistrano configuration
  • Understand how to make Capistrano do something custom during deploy
    • We make database dumps on every deploy. How do we do that?
    • We show the total size of the dumps on every deploy. How do we do that?
  • Understand the differences between the deploy and deploy:migrations tasks and which one you want to use
  • Understand the geordi gem and what its deploy task does
  • Understand the Capistrano directory structure on a target host
  • Understand some differences between Capistrano 2 and 3

Resources

Exercises

  • Get SSH on one of our applications. Open a shell to the application directory, look around and understand the directory structure.
  • In one of our projects, look at config/deploy.rb and the config/deploy directory. Get a rough understanding what those files do.
  • Get an operations engineer to help you deploy MovieDB to http://moviedb-yourname.makandra.de/ using Capistrano.

Owner of this card:

Avatar
Henning Koch
Last edit:
about 1 month ago
by Emanuel De
Posted by Henning Koch to makandra Curriculum
This website uses cookies to improve usability and analyze traffic.
Accept or learn more