Capistrano deployment when db is not same machine as web server

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.

-------------Problems Reply------------

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, "", :no_release => true

Many of the tasks in capistrano are qualified to not run when this variable is set.

Category:deployment Views:0 Time:2010-07-21

Related post

Copyright (C), All Rights Reserved.

processed in 0.446 (s). 11 q(s)