Today I was working on a Rails app that's running on the same machine that hosts the Subversion repo. So I figured I'd use local_repository
to make the deployments faster. You know, that's where you have this in your config/deploy.rb
:
With these settings, Capistrano checks out the code using the file:// URI which is much faster than going over svn+ssh. Anyhow, it was failing with a svn: Unable to open an ra_local session to URL
error and I couldn't get it working... until I noticed that I had left the set :deploy_via, :copy
line in from a previous setup. Doh! Once I removed that, all was well.
We could check for this with something like this in lib/capistrano/recipes/deploy/scm/base.rb
:
Are there cases in which you'd actually want to use those together? I'm not sure. We'd probably want a better message than that, too :-)