cap love:it
Posted in capistrano on February 25th, 2009 by mdwGotta love capistrano. The more I use it the more I appreciate it. I use it for old PHP sites, running and downloading database backups, whatever. Here’s an example from my up-and-coming pizza.pro site.
Notice the beauty and power of the run and system commands, allowing you to do pretty much anything you want on your local machine or on a remote server. Sweet!
Another thing I did was to make svn.cap and git.cap files and make aliases in my local .profile like:
alias svn-remote=“cap -f config/svn.cap”
alias git-remote=“cap -f config/git.cap”
alias git-remote=“cap -f config/git.cap”
That way I can easily issue commands targeted at the remote server for those cases where the site itself is the originator of new content. Any site that might generate content on the server, really should have that content committed from that server!
