Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deploying WordPress with Capistrano

Deploying WordPress with Capistrano

A brief overview of how to deploy with Capistrano and why you would want to.

Kronda Adair

August 10, 2013
Tweet

More Decks by Kronda Adair

Other Decks in Technology

Transcript

  1. What  is  Capistrano? Capistrano  is  a  uMlity  and  framework  for

      execuMng  commands  in  parallel  on  mulMple   remote  machines,  via  SSH hQp://rubygems.org/gems/capistrano Saturday, August 10, 13
  2. Recipes namespace  :deploy  do    desc  "Prepares  one  or  more

     servers  for   deployment." namespace  :db  do    desc  "Download  a  backup  of  the   database(s)  from  the  given  stage." Saturday, August 10, 13
  3. What  can  you  do  with  Capistrano? • Deploy  the  latest

     code  with  three  liQle  words  (cap  {stage}   deploy) • Rollback  code  easily  (cap  dev  deploy:rollback) • Sync  folders  outside  your  version  control  system • Push  or  pull  databases  from  server  to  local  dev  environment   or  vice  versa.   • Add  custom  recipes!     Saturday, August 10, 13
  4. How  to  Get  Started: Things  you  should  know  before  you

     start:   ◦ Version  control  (Cap  works  with  Git  and  SVN   by  default) ◦ SSH  (Secure  SHell  server  access)     Dependencies ◦ Git  &  Github ◦ SSH ◦ Rsync ◦ WP-­‐CLI  (for  DB,  you  can  live  without) Saturday, August 10, 13