From what I understand by default code will be deployed too all roles defined. Let's say you have a db on a different machine then your web server. You define roles for both the web server and the db then deploy. Currently my capistrano script is deploying the source to both machines. I want it to deploy source only to the web server.
How can this be done? The capistrano site mostly has examples of single machine architectures.
In my case I have separate web and app servers. In order to not deploy the code to the web server, I use the following:
role :web, "myappserver.com", :no_release => true
Many of the tasks in capistrano are qualified to not run when this variable is set.