Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9999 (closed defect: wontfix)

Opened 8 months ago

Last modified 4 months ago

Capistrano does not handle use of different host names for the same host

Reported by: hansdegraaff Assigned to: minam
Priority: normal Milestone: 2.x
Component: Capistrano Version: edge
Severity: normal Keywords: cname alias
Cc:

Description

Capistrano doesn't seem to handle the situation where different names point to the same host. For example, given the following settings in config/deploy.rb:

role :web, "machine1.test.host" role :app, "machine1.test.host" role :db, "db.test.host", :primary => true

And DNS records indicating that db.test.host is a CNAME for machine1.test.host, capistrano tries to do parallel deployments to both machines, and since they are actually the same machine, this fails. Using DNS to determine which machine is currently serving e.g. the database is useful outside of capistrano, so it would be great if settings such as these would work with capistrano, in this case, doing only a single deployment to machine1.test.host.

Change History

01/30/08 06:14:56 changed by minam

I would certainly consider a patch that implemented this for capistrano. If anyone else is passionate about this, feel free to post the patch here. I'll leave this ticket open until then.

02/22/08 01:43:58 changed by minam

  • status changed from new to closed.
  • resolution set to wontfix.

Closing this ticket to keep things clean. If anyone comes up with a patch, please feel free to reopen or create a new ticket.