Skip to content
 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Capistrano Deploy


According to Capistrano official site, Capistrono is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. Is that mean anything that you do on the command line, you can make with work with Capistrano?

My answer is YES!

Let 's get started!

What you will need on your local machine?


  • Ruby RVM
  • Capistrano
  • railsless-deploy
  • capistrano-ext
  • mysql
  • mysqldump
  • rsync
  • git
  • You are using SSH to access the remote servers.

What can you do with this recipe?


* Setup releases, shared folders on QA/Production server
* Create current symlink and point to the current release
* Roll back to the previous release (Not only you can roll back files but also you can roll back Database!)
* Sync up wp-content/uploads folder from Local to QA/Prod 
* Sync up wp-content/uploads folder from QA/Prod to Local
* Backup Database on QA/Production from 

*** I'm putting a video tutorial together soon...so stay tune! ***

How to use cap commands?##


QA or Staging

* cap deploy:setup 
* cap deploy
* cap deploy:rollback
* cap db:push
* cap db:pull
* cap files:sync_up
* cap files:sync_down

Production

* cap prod deploy:setup 
* cap prod deploy
* cap prod deploy:rollback
* cap prod db:push
* cap prod db:pull
* cap prod files:sync_up
* cap prod files:sync_down

Special Thanks


Special thanks to you guys!

About

A Capistrano deploy recipe for syncing your local, playground, and production server environments.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors