On Deploy Files/Folders Also Created On Separate DB Server

I have a web/app/svn server and a separate database server. Whenever I
deploy my app, it treats the db server identical to the web/app
server. By that, I mean it sets up the releases folder, etc. and
deploys the entire app to the db server in addition to doing it on the
web/app server.

I end up with /path/to/myapp/(current|releases|revisions.log|shared)
on both the db server and the web/app server. Is there anyway to make
capistrano only deploy code to the web/app server and only do database
stuff on the database server?

I declared roles in my deploy.rb recipe like so:

role :web, domain
role :app, domain
role :db, “db.#{subdomain}”, :primary => true
role :scm, “app.#{subdomain}”

I figured it would only execute the svn and code updates on the web
and app servers (which are the same in my case).

I declared roles in my deploy.rb recipe like so:

role :web, domain
role :app, domain
role :db, “db.#{subdomain}”, :primary => true
role :scm, “app.#{subdomain}”

I figured it would only execute the svn and code updates on the web
and app servers (which are the same in my case).

Add :no_release => true …

role :db, “db.#{subdomain}”, :primary => true, :no_release => true

Sweet. I’ll try that tomorrow.