Capistrano: Not just for Rails

Posted by Jamis on September 21, 2006 @ 09:14 AM

I am asked periodically if I know of anybody using Capistrano with environments other than Rails. I’ve never had any concrete examples to give them—just rumors and hearsay. Never, that is, until this morning.

The Simplistic Complexity blog has an article from last month titled Automated PHP Deployment With Capistrano, which goes step-by-step through the process of setting up Capistrano for a PHP application, and then using Capistrano to deploy. It can be done!

Furthermore, googling for “java capistrano” returns (besides a few links to cafes in San Juan Capistrano) a few abstracts and articles of people using Capistrano in Java environments. I wish someone would do a blog article on it so I could link it up, but it is heartening to see Ruby sneaking into “enterprise” environments.

Posted in Tips & Tricks

Comments

Have something to add? Click here to leave a comment.

21 Sep 2006

1. Daniel Morrison said...

As I moved my business to Rails, there was one big PHP project that I had to support. Adding Capistrano support made to that project my life so much easier as deploying updates was no longer a chore. Then I realized I could use Migrations on the project too, without having the actual code know anything about Ruby. Thanks for helping me sneak Ruby into the system!

2. Tom said...

I am using Capistrano to deploy Wordpress to my Dreamhost account. I've detailed how I did that here http://blog.craz8.com/articles/2006/09/02/deploying-wordpress-on-dreamhost-with-capistrano and here http://blog.craz8.com/articles/2006/09/09/wordpress-with-capistrano-and-google-sitemaps-plugin It works great, once you work out the specific app issues for which files to deploy, and which to have shared and symlinked into place during the deployment.

3. Jon Leighton said...

"Me too" -- I've used Capistrano with a PHP app.

4. Jon Maddox said...

I actually had the idea to deploy PHP with Capistrano at RailsConf in Chicago. I didn't really have a project I was working on while I was there and got an email from work saying I needed to redeploy a certain project. So I decided to write a recipe and get cap to do my dirty work. After using it with all my current rails apps I knew I could never deploy manually again. You think you cringe deploying manually now? Try doing it after _cap deploy_ing all your new stuff.
22 Sep 2006

5. Neil Wilson said...

The 'vmbuilder' gem I've put together uses Capistrano to build Xen based Debian VMs from scratch automatically and in parallel. Watching 10 machines build themselves in parallel is remarkably satisfying.