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.

E28c2733db2ca1e63933aabc77ad33ca?s=128

Kronda Adair

August 10, 2013
Tweet

Transcript

  1. CAP,  DEPLOY,  PROFIT Deploying  WordPress with  Capistrano Saturday, August 10,

    13
  2. Kronda  Adair   (Kuh  rawn  duh) @karveldigital karveldigital.com @kronda  

    Saturday, August 10, 13
  3. Hashtag:   #wpcap Saturday, August 10, 13

  4. 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
  5. $  cap  {stage}  deploy Saturday, August 10, 13

  6. http://www.flickr.com/photos/the_justified_sinner/5307276247 Saturday, August 10, 13

  7. 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
  8. 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
  9. 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
  10. Geang  Started hQp://Mnyurl.com/git-­‐rocks hQp://Mnyurl.com/wp-­‐capistrano hQps://github.com/kronda/ wp_capistrano Saturday, August 10, 13

  11. Resources hQp://rubygems.org/gems/capistrano     hQp://guides.beanstalkapp.com/deployments/ deploy-­‐with-­‐capistrano.html       hQp://www.capistranorb.com/

    Saturday, August 10, 13
  12. THANKS! @karveldigital karveldigital.com Saturday, August 10, 13