Adding Subversion to Your Path for Rails Deployments on Windows

by dbaldwin

One dependency for Capistrano deployments is that a command-line SVN client is installed on the local machine. While deploying on Windows you may run into the following error:

No such file or directory - svn info

This means you’ll need to add the SVN client to your path so that it can be executed from anywhere on your system. Adding the SVN client to your path is relatively straightforward:

  1. Open Control Panel
  2. Double-click the System icon
  3. Click on the Advanced tab
  4. Click on Environment Variables
  5. In the System variables list edit the Path variable
  6. Now add the path to your SVN client folder. Be sure to include the bin folder in your path

If you have a command prompt open you’ll most likely need to close it and open a new one. Your Capistrano deployments should now work without error.