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 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!
I wasn’t sure I’d have a car last this long, but my 1997 saturn has now gone over the 100k mark. It’s looking old, but never has any problems. That and the fact that it gets pretty good gas mileage (manual transmission) means it’s a very cheap car to operate. So sexy new cars be damned, I plan to keep driving this around for a while.